diff options
Diffstat (limited to 'app/Controller/SubtaskController.php')
-rw-r--r-- | app/Controller/SubtaskController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/SubtaskController.php b/app/Controller/SubtaskController.php index 46061122..93dab5cd 100644 --- a/app/Controller/SubtaskController.php +++ b/app/Controller/SubtaskController.php @@ -54,7 +54,7 @@ class SubtaskController extends BaseController list($valid, $errors) = $this->subtaskValidator->validateCreation($values); if ($valid) { - if ($this->subtaskModel->create($values)) { + if ($this->subtaskModel->create($values) !== false) { $this->flash->success(t('Sub-task added successfully.')); } else { $this->flash->failure(t('Unable to create your sub-task.')); |