summaryrefslogtreecommitdiff
path: root/app/Model/SubtaskModel.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 20:26:23 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 20:26:23 -0400
commit937079709514c037959d691c0d653c39d5ea84e6 (patch)
tree37e0d6c28c0b2294d433e48e454358ced66ac6c9 /app/Model/SubtaskModel.php
parent729c933d001d699837d90d151acbed1093a8c6f5 (diff)
Minor fixes
Diffstat (limited to 'app/Model/SubtaskModel.php')
-rw-r--r--app/Model/SubtaskModel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/SubtaskModel.php b/app/Model/SubtaskModel.php
index b63cf0a1..019064ad 100644
--- a/app/Model/SubtaskModel.php
+++ b/app/Model/SubtaskModel.php
@@ -218,7 +218,7 @@ class SubtaskModel extends Base
$this->prepareCreation($values);
$subtask_id = $this->db->table(self::TABLE)->persist($values);
- if ($subtask_id) {
+ if ($subtask_id !== false) {
$this->container['dispatcher']->dispatch(
self::EVENT_CREATE,
new SubtaskEvent(array('id' => $subtask_id) + $values)