From 1522be603b4508b03b8fa79a6a3fbfeb90ffece6 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 27 Dec 2014 19:23:51 -0500 Subject: Fixs after replacing the event dispatcher --- app/Model/TaskCreation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/TaskCreation.php') diff --git a/app/Model/TaskCreation.php b/app/Model/TaskCreation.php index 6a2c0f9c..7d523214 100644 --- a/app/Model/TaskCreation.php +++ b/app/Model/TaskCreation.php @@ -24,7 +24,7 @@ class TaskCreation extends Base $this->prepare($values); $task_id = $this->persist(Task::TABLE, $values); - if ($task_id) { + if ($task_id !== false) { $this->fireEvents($task_id, $values); } -- cgit v1.2.3