Permalink
Browse files

If target is invalid display nothing.

  • Loading branch information...
1 parent 2da7a2d commit 956d3f7118c3aae9611b63c93080a31f085d5222 Doug Youch committed May 19, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/controllers/post_stream/page_renderer.rb
@@ -22,7 +22,10 @@ def stream
elsif editor?
target = myself
else
- return render_paragraph :text => 'Please setup page connections' unless target
+ if target.nil? || target.id.nil?
+ return render_paragraph :text => 'Please setup page connections' if myself.editor?
+ return render_paragraph :nothing => true
+ end
end
PostStreamPoster.setup_header(self)

0 comments on commit 956d3f7

Please sign in to comment.