From 57bd052c5baf3553f92f1085b328b4075ade5a52 Mon Sep 17 00:00:00 2001 From: Daniel Vincent Grippi Date: Wed, 15 Sep 2010 12:22:03 -0700 Subject: [PATCH] user edit bug --- app/views/users/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 3086eb999..3756060e8 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -21,7 +21,7 @@ - unless @photos.nil? || @photos.empty? - for photo in @photos - - if photo.url(:thumb_medium) == @profile.image_url.sub(@user.url,'/') + - if @profile.image_url && (photo.url(:thumb_medium) == @profile.image_url.sub(@user.url,'/')) %div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'} = check_box_tag 'checked_photo', true, true = link_to image_tag(photo.url(:thumb_medium)), "#"