]> git.mxchange.org Git - friendica.git/commitdiff
Add new group added id return to Group::create
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 13 Dec 2017 01:52:50 +0000 (20:52 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 13 Dec 2017 01:52:50 +0000 (20:52 -0500)
src/Model/Group.php

index 857b972d62b4c81c4f1d02ff64e54b689f0355a8..cdc2a821d081ca2f93da0829c571d16afd397831 100644 (file)
@@ -47,6 +47,9 @@ class Group extends BaseObject
                        }
 
                        $return = dba::insert('group', ['uid' => $uid, 'name' => $name]);
+                       if ($return) {
+                               $return = dba::lastInsertId();
+                       }
                }
                return $return;
        }