summaryrefslogtreecommitdiff
path: root/app/Controller/SubtaskController.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/Controller/SubtaskController.php
parent729c933d001d699837d90d151acbed1093a8c6f5 (diff)
Minor fixes
Diffstat (limited to 'app/Controller/SubtaskController.php')
-rw-r--r--app/Controller/SubtaskController.php2
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.'));