diff options
Diffstat (limited to 'app/Model/Comment.php')
-rw-r--r-- | app/Model/Comment.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Model/Comment.php b/app/Model/Comment.php index 844f0c89..3aa9c027 100644 --- a/app/Model/Comment.php +++ b/app/Model/Comment.php @@ -129,7 +129,9 @@ class Comment extends Base ->eq('id', $values['id']) ->update(array('comment' => $values['comment'])); - $this->container['dispatcher']->dispatch(self::EVENT_UPDATE, new CommentEvent($values)); + if ($result) { + $this->container['dispatcher']->dispatch(self::EVENT_UPDATE, new CommentEvent($values)); + } return $result; } |