Get the user image right this time...
authorTom Hughes <tom@compton.nu>
Mon, 25 Feb 2008 18:55:25 +0000 (18:55 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 25 Feb 2008 18:55:25 +0000 (18:55 +0000)
app/views/diary_entry/list.rhtml

index 4fd5e7bc26f6dd4af4d057e70e0e3654ec49f386..b5480757860d6a464df121ac095b5c8ad208a79d 100644 (file)
@@ -1,7 +1,7 @@
 <h2><%= @title %></h2>
 
-<% if @user.image %>
- <%= image_tag url_for_file_column(@user, "image") %>
+<% if @this_user && @this_user.image %>
+ <%= image_tag url_for_file_column(@this_user, "image") %>
 <% end %>
 
 <br />