diff options
Diffstat (limited to 'app/Model/CommentModel.php')
-rw-r--r-- | app/Model/CommentModel.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Model/CommentModel.php b/app/Model/CommentModel.php index 6e5fd9d8..36e1fc48 100644 --- a/app/Model/CommentModel.php +++ b/app/Model/CommentModel.php @@ -3,7 +3,6 @@ namespace Kanboard\Model; use Kanboard\Event\CommentEvent; - use Kanboard\Core\Base; /** @@ -114,7 +113,7 @@ class CommentModel extends Base $values['date_creation'] = time(); $comment_id = $this->db->table(self::TABLE)->persist($values); - if ($comment_id) { + if ($comment_id !== false) { $event = new CommentEvent(array('id' => $comment_id) + $values); $this->dispatcher->dispatch(self::EVENT_CREATE, $event); $this->userMentionModel->fireEvents($values['comment'], self::EVENT_USER_MENTION, $event); |