From 48372faec624b389f9d11868ad412d3c378c876e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 16 Feb 2025 05:59:23 +0000 Subject: [PATCH] Fixes: Uncaught Exception TypeError: "array_merge(): Argument #1 must be of type array, int given" --- src/App.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index d42f63436c..ffcbfd1544 100644 --- a/src/App.php +++ b/src/App.php @@ -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); -- 2.39.5