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