]> git.mxchange.org Git - friendica.git/commitdiff
Fixes: Uncaught Exception TypeError: "array_merge(): Argument #1 must be of type...
authorMichael <heluecht@pirati.ca>
Sun, 16 Feb 2025 05:59:23 +0000 (05:59 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 16 Feb 2025 05:59:23 +0000 (05:59 +0000)
src/App.php

index d42f63436c9c6f684464daa8048079c3e8fb16b4..ffcbfd15449cf683f0f4538f6d8eafec4bfcc74c 100644 (file)
@@ -573,7 +573,15 @@ class App
 
                        // Processes data from GET requests
                        $httpinput = $httpInput->process();
-                       $input     = array_merge($httpinput['variables'], $httpinput['files'], $request);
+
+                       if (!is_array($httpinput['variables'])) {
+                               $httpinput['variables'] = [];
+                       }
+                       if (!is_array($httpinput['files'])) {
+                               $httpinput['files'] = [];
+                       }
+
+                       $input = array_merge($httpinput['variables'], $httpinput['files'], $request);
 
                        // Let the module run its internal process (init, get, post, ...)
                        $timestamp = microtime(true);