fixed 500 error if one is opening people's photos view and there are no images in the user's stream

This commit is contained in:
Jakob Kramer 2011-11-06 13:29:57 +01:00
parent 13297eadc8
commit b8dbf1d81e

View file

@ -27,7 +27,7 @@
= render 'people/sub_header', :person => @person, :contact => @contact = render 'people/sub_header', :person => @person, :contact => @contact
/ hackity hack until we get a photo stream / 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 -if @post_type == :photos
= render 'photos/index', :photos => @posts = render 'photos/index', :photos => @posts
- else - else