From b8dbf1d81e1383cf0cd7d5eed37d1cea0307f6f4 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 6 Nov 2011 13:29:57 +0100 Subject: [PATCH] fixed 500 error if one is opening people's photos view and there are no images in the user's stream --- app/views/people/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index 314b6282f..5fcb79d02 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -27,7 +27,7 @@ = render 'people/sub_header', :person => @person, :contact => @contact / hackity hack until we get a photo stream - - if (@posts && @posts.length > 0) || @stream.stream_posts.length > 0 + - if (@posts && @posts.length > 0) || (@stream && @stream.stream_posts.length > 0) -if @post_type == :photos = render 'photos/index', :photos => @posts - else