Add new group added id return to Group::create
This commit is contained in:
parent
385a36138a
commit
72641e86a8
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ class Group extends BaseObject
|
|||
}
|
||||
|
||||
$return = dba::insert('group', ['uid' => $uid, 'name' => $name]);
|
||||
if ($return) {
|
||||
$return = dba::lastInsertId();
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue