mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Merge pull request #10339 from annando/warning
Avoid warning "array_merge(): Expected parameter 2 to be an array, null given"
This commit is contained in:
commit
2258544237
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Apps extends BaseApi
|
|||
if (!empty($postdata)) {
|
||||
$postrequest = json_decode($postdata, true);
|
||||
if (!empty($postrequest) && is_array($postrequest)) {
|
||||
$request = array_merge($request, $$postrequest);
|
||||
$request = array_merge($request, $postrequest);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue