From: Michael Date: Sat, 29 May 2021 22:48:06 +0000 (+0000) Subject: Avoid warning "array_merge(): Expected parameter 2 to be an array, null given" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c05c447d0f4cc2df01772dbb4a83f5c00b0b17e0;p=friendica.git Avoid warning "array_merge(): Expected parameter 2 to be an array, null given" --- diff --git a/src/Module/Api/Mastodon/Apps.php b/src/Module/Api/Mastodon/Apps.php index a0cb250d1d..f16ceea859 100644 --- a/src/Module/Api/Mastodon/Apps.php +++ b/src/Module/Api/Mastodon/Apps.php @@ -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); } }