Unify request value handling
This commit is contained in:
parent
4319136421
commit
4724000d06
16 changed files with 105 additions and 73 deletions
|
@ -37,7 +37,7 @@ class Create extends BaseApi
|
|||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
// params
|
||||
$name = $request['name'] ?? '';
|
||||
$name = $this->getRequestValue($request, 'name', '');
|
||||
$json = json_decode($request['json'], true);
|
||||
$users = $json['user'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue