From 640733e3d3793cfdf6f154146f81a3c85225cb29 Mon Sep 17 00:00:00 2001 From: Ilya Zhitomirskiy Date: Wed, 2 Nov 2011 10:47:50 -0700 Subject: [PATCH] fixed the photo index for person --- 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 7ccb346a7..05d4e76a6 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.posts.length > 0 + - if (@posts && @posts.length > 0) || (defined?(@stream) && @stream.posts.length > 0) -if @post_type == :photos = render 'photos/index', :photos => @posts - else