Skip to content

Commit

Permalink
Fix when there are no user blogs [#107 status:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 5, 2010
1 parent 851c1a1 commit 4d70734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/modules/blog/app/controllers/blog/edit_renderer.rb
Expand Up @@ -73,7 +73,7 @@ def write

if editor?
@blog = Blog::BlogBlog.find(:first,:conditions => "is_user_blog = 1")
@target = @blog.target
@target = @blog.target if @blog
else
@target = conn_id
@blog = Blog::BlogBlog.find_by_target_type_and_target_id(@target.class.to_s,@target.id)
Expand Down

0 comments on commit 4d70734

Please sign in to comment.