diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-23 23:25:18 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-23 23:25:18 -0400 |
commit | 65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (patch) | |
tree | 523738f9b29e0f30220d272310bb2096d9a06aa2 /app/Model | |
parent | 6bee8822bc7622a8b2147172c86554cc3c021188 (diff) |
Add functional tests for task links
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Link.php | 4 | ||||
-rw-r--r-- | app/Model/TaskLink.php | 2 |
2 files changed, 3 insertions, 3 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; } /** diff --git a/app/Model/TaskLink.php b/app/Model/TaskLink.php index 7b696afc..251460c9 100644 --- a/app/Model/TaskLink.php +++ b/app/Model/TaskLink.php @@ -144,7 +144,7 @@ class TaskLink extends Base $this->db->closeTransaction(); - return $task_link_id; + return (int) $task_link_id; } /** |