From: Hypolite Petovan Date: Wed, 13 Dec 2017 01:52:50 +0000 (-0500) Subject: Add new group added id return to Group::create X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=72641e86a816fea4b727a943fa2edd16c12a3caf;p=friendica.git Add new group added id return to Group::create --- diff --git a/src/Model/Group.php b/src/Model/Group.php index 857b972d62..cdc2a821d0 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -47,6 +47,9 @@ class Group extends BaseObject } $return = dba::insert('group', ['uid' => $uid, 'name' => $name]); + if ($return) { + $return = dba::lastInsertId(); + } } return $return; }