# Commit from 4 days ago

**URL:** https://meta.discourse.org/t/commit-from-4-days-ago/52320
**Category:** Bug
**Created:** [November 1, 2016, 7:20pm UTC](https://meta.discourse.org/t/commit-from-4-days-ago/52320 "2016-11-01T19:20:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arrancscott](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arrancscott/32/50191_2.png) [@arrancscott](https://meta.discourse.org/u/arrancscott)
#### Post date: [November 1, 2016, 7:20pm UTC](https://meta.discourse.org/t/commit-from-4-days-ago/52320/1 "2016-11-01T19:20:59Z")

</div>

There was a commit made 4 days ago that’s seemed to introduce some unexpected functionality.

 ![](https://global.discourse-cdn.com/meta/original/3X/8/e/8eedf09f44874d258a9c6624297c08fa0f8fd47a.png)

This added line makes the following `if` statement in `user.hbs` always evaluate to true:  
`{{if model.profileBackground 'has-background' 'no-background'}}`

Here `model.profileBackground` is always truthy and thus always results in the `has-background` class being applied to the element.

I’ve just tested this on the live [meta.discourse.org](http://meta.discourse.org) and it still seems to be happening. Is there something I’m missing here or is it a genuine bug?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 1, 2016, 8:57pm UTC](https://meta.discourse.org/t/commit-from-4-days-ago/52320/2 "2016-11-01T20:57:25Z")

</div>

Thanks for reporting it. It seems empty safe strings in ember don’t evaluate as fasley!

[https://github.com/discourse/discourse/commit/e9309f2d960007bd5184721ded97f89b93962dc8](https://github.com/discourse/discourse/commit/e9309f2d960007bd5184721ded97f89b93962dc8)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 1, 2016, 8:57pm UTC](https://meta.discourse.org/t/commit-from-4-days-ago/52320/3 "2016-11-01T20:57:28Z")

</div>


