Avoid warning "array_merge(): Expected parameter 2 to be an array, null given"

This commit is contained in:
Michael 2021-05-29 22:48:06 +00:00
parent 891fb42a23
commit c05c447d0f

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