Add new group added id return to Group::create

This commit is contained in:
Hypolite Petovan 2017-12-12 20:52:50 -05:00
parent 385a36138a
commit 72641e86a8

View file

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