summaryrefslogtreecommitdiff
path: root/app/Model/Link.php
diff options
context:
space:
mode:
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;
}
/**