]> git.mxchange.org Git - friendica.git/commitdiff
Avoid warning "array_merge(): Expected parameter 2 to be an array, null given"
authorMichael <heluecht@pirati.ca>
Sat, 29 May 2021 22:48:06 +0000 (22:48 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 29 May 2021 22:48:06 +0000 (22:48 +0000)
src/Module/Api/Mastodon/Apps.php

index a0cb250d1db43148e6e82669ff608c92703a003c..f16ceea859f3db646d2c0b99e8d9ac17aede8048 100644 (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);
                        }
                }