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:
parent
13297eadc8
commit
b8dbf1d81e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue