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:
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

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