summaryrefslogtreecommitdiff
path: root/app/Controller/CommentController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/CommentController.php')
-rw-r--r--app/Controller/CommentController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/CommentController.php b/app/Controller/CommentController.php
index 696d240f..2a8c258a 100644
--- a/app/Controller/CommentController.php
+++ b/app/Controller/CommentController.php
@@ -76,7 +76,7 @@ class CommentController extends BaseController
list($valid, $errors) = $this->commentValidator->validateCreation($values);
if ($valid) {
- if ($this->commentModel->create($values)) {
+ if ($this->commentModel->create($values) !== false) {
$this->flash->success(t('Comment added successfully.'));
} else {
$this->flash->failure(t('Unable to create your comment.'));