Fixed show dummy icon if no one exists.

This commit is contained in:
Martin Edenhofer 2012-04-22 17:59:10 +02:00
parent c986be287b
commit acbf1fe24a

View file

@ -601,8 +601,8 @@ class App.Controller extends Spine.Controller
# users # users
if params.type == 'User' if params.type == 'User'
for user of params.data for user of params.data
if user && !user.image if params.data[user] && !params.data[user]['image']
user.image = 'http://placehold.it/48x48' params.data[user]['image'] = 'http://placehold.it/48x48'
App.User.refresh( params.data[user], options: { clear: true } ) App.User.refresh( params.data[user], options: { clear: true } )
# tickets # tickets