aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_comment_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin_comment_controller.rb')
-rw-r--r--app/controllers/admin_comment_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_comment_controller.rb b/app/controllers/admin_comment_controller.rb
index dc505be9f..0d5e84fed 100644
--- a/app/controllers/admin_comment_controller.rb
+++ b/app/controllers/admin_comment_controller.rb
@@ -16,7 +16,7 @@ class AdminCommentController < AdminController
old_body = @comment.body
old_visible = @comment.visible
- @comment.visible = params[:comment][:visible] == "true" ? true : false
+ @comment.visible = params[:comment][:visible] == "true"
if @comment.update_attributes(params[:comment])
@comment.info_request.log_event("edit_comment",