$_POST replaced
This commit is contained in:
parent
f11bf08a7b
commit
af18e2f2a9
|
@ -38,7 +38,7 @@ class Create extends BaseApi
|
|||
|
||||
// params
|
||||
$name = $request['name'] ?? '';
|
||||
$json = json_decode($_POST['json'], true);
|
||||
$json = json_decode($request['json'], true);
|
||||
$users = $json['user'];
|
||||
|
||||
// error if no name specified
|
||||
|
|
|
@ -40,7 +40,7 @@ class Update extends BaseApi
|
|||
// params
|
||||
$gid = $request['gid'] ?? 0;
|
||||
$name = $request['name'] ?? '';
|
||||
$json = json_decode($_POST['json'], true);
|
||||
$json = json_decode($request['json'], true);
|
||||
$users = $json['user'];
|
||||
|
||||
// error if no name specified
|
||||
|
|
Loading…
Reference in a new issue