Skip to content
Snippets Groups Projects
Verified Commit 037a6eb0 authored by Damien's avatar Damien
Browse files

FIX #12070 TIME 0:05 Fix usergroups

parent 39c8ad17
No related branches found
No related tags found
No related merge requests found
...@@ -24,16 +24,16 @@ class UserGroupModel ...@@ -24,16 +24,16 @@ class UserGroupModel
ValidatorModel::arrayType($args, ['select', 'where', 'data', 'orderBy']); ValidatorModel::arrayType($args, ['select', 'where', 'data', 'orderBy']);
ValidatorModel::intType($args, ['limit']); ValidatorModel::intType($args, ['limit']);
$fields = DatabaseModel::select([ $usersGroups = DatabaseModel::select([
'select' => empty($args['select']) ? ['*'] : $args['select'], 'select' => $args['select'] ?? ['*'],
'table' => ['usergroup_content'], 'table' => ['usergroup_content'],
'where' => empty($args['where']) ? [] : $args['where'], 'where' => $args['where'] ?? [],
'data' => empty($args['data']) ? [] : $args['data'], 'data' => $args['data'] ?? [],
'order_by' => empty($args['orderBy']) ? ['label'] : $args['orderBy'], 'order_by' => $args['orderBy'] ?? [],
'limit' => empty($args['limit']) ? 0 : $args['limit'] 'limit' => $args['limit'] ?? 0
]); ]);
return $fields; return $usersGroups;
} }
public static function update(array $args) public static function update(array $args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment