summaryrefslogtreecommitdiff
path: root/app/Controller/Link.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Link.php')
-rw-r--r--app/Controller/Link.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/Link.php b/app/Controller/Link.php
index 8eac8494..482e415c 100644
--- a/app/Controller/Link.php
+++ b/app/Controller/Link.php
@@ -71,7 +71,7 @@ class Link extends Base
if ($valid) {
- if ($this->link->create($values['label'], $values['opposite_label'])) {
+ if ($this->link->create($values['label'], $values['opposite_label']) !== false) {
$this->session->flash(t('Link added successfully.'));
$this->response->redirect($this->helper->url->to('link', 'index'));
}