Merge pull request #10339 from annando/warning

Avoid warning "array_merge(): Expected parameter 2 to be an array, null given"
pull/10340/head
Philipp 2021-05-30 07:45:52 +02:00 committed by GitHub
commit 2258544237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}