summaryrefslogtreecommitdiff
path: root/app/Controller/TaskExternalLinkController.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/TaskExternalLinkController.php
parent729c933d001d699837d90d151acbed1093a8c6f5 (diff)
Minor fixes
Diffstat (limited to 'app/Controller/TaskExternalLinkController.php')
-rw-r--r--app/Controller/TaskExternalLinkController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/TaskExternalLinkController.php b/app/Controller/TaskExternalLinkController.php
index f3c6050d..9c04eb00 100644
--- a/app/Controller/TaskExternalLinkController.php
+++ b/app/Controller/TaskExternalLinkController.php
@@ -76,7 +76,7 @@ class TaskExternalLinkController extends BaseController
$values = $this->request->getValues();
list($valid, $errors) = $this->externalLinkValidator->validateCreation($values);
- if ($valid && $this->taskExternalLinkModel->create($values)) {
+ if ($valid && $this->taskExternalLinkModel->create($values) !== false) {
$this->flash->success(t('Link added successfully.'));
return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
}