mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
fix error msg when creating a group without passing a name
This commit is contained in:
parent
1133d65544
commit
b131c63dd7
|
@ -2186,7 +2186,7 @@ class RestapiController { /* {{{ */
|
|||
return $check;
|
||||
$params = $request->getParsedBody();
|
||||
if (empty($params['name'])) {
|
||||
return $response->withJson(array('success'=>false, 'message'=>'Need a category.', 'data'=>''), 400);
|
||||
return $response->withJson(array('success'=>false, 'message'=>'Need a group name.', 'data'=>''), 400);
|
||||
}
|
||||
|
||||
$groupName = $params['name'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user