From c05c447d0f4cc2df01772dbb4a83f5c00b0b17e0 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 29 May 2021 22:48:06 +0000 Subject: [PATCH] Avoid warning "array_merge(): Expected parameter 2 to be an array, null given" --- src/Module/Api/Mastodon/Apps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }