+ userModel: return false if the passed parameters are empty.

This commit is contained in:
liugang
2023-12-22 11:06:41 +08:00
parent 165cc2fafe
commit 1fe64e57b0
+2
View File
@@ -559,6 +559,8 @@ class userModel extends model
*/
public function createUserGroup(array $groups, string $account): bool
{
if(empty($groups) || empty($account)) return false;
$userGroup = new stdclass();
$userGroup->account = $account;
$userGroup->project = '';