mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Unify request value handling
This commit is contained in:
parent
4319136421
commit
4724000d06
16 changed files with 105 additions and 73 deletions
|
@ -60,8 +60,8 @@ class Update extends BaseApi
|
|||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
// params
|
||||
$gid = $request['list_id'] ?? 0;
|
||||
$name = $request['name'] ?? '';
|
||||
$gid = $this->getRequestValue($request, 'list_id', 0);
|
||||
$name = $this->getRequestValue($request, 'name', '');
|
||||
|
||||
// error if no gid specified
|
||||
if ($gid == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue