summaryrefslogtreecommitdiff
path: root/app/Model/Link.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-23 23:25:18 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-23 23:25:18 -0400
commit65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (patch)
tree523738f9b29e0f30220d272310bb2096d9a06aa2 /app/Model/Link.php
parent6bee8822bc7622a8b2147172c86554cc3c021188 (diff)
Add functional tests for task links
Diffstat (limited to 'app/Model/Link.php')
-rw-r--r--app/Model/Link.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/Link.php b/app/Model/Link.php
index b26a01e4..e0e5184e 100644
--- a/app/Model/Link.php
+++ b/app/Model/Link.php
@@ -125,7 +125,7 @@ class Link extends Base
$label_id = $this->db->getConnection()->getLastId();
- if ($opposite_label !== '') {
+ if (! empty($opposite_label)) {
$this->db
->table(self::TABLE)
@@ -144,7 +144,7 @@ class Link extends Base
$this->db->closeTransaction();
- return $label_id;
+ return (int) $label_id;
}
/**