diff options
Diffstat (limited to 'app/Model/Link.php')
-rw-r--r-- | app/Model/Link.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/Link.php b/app/Model/Link.php index e0e5184e..467710bd 100644 --- a/app/Model/Link.php +++ b/app/Model/Link.php @@ -123,7 +123,7 @@ class Link extends Base return false; } - $label_id = $this->db->getConnection()->getLastId(); + $label_id = $this->db->getLastId(); if (! empty($opposite_label)) { @@ -138,7 +138,7 @@ class Link extends Base ->table(self::TABLE) ->eq('id', $label_id) ->update(array( - 'opposite_id' => $this->db->getConnection()->getLastId() + 'opposite_id' => $this->db->getLastId() )); } |