Fixes: Uncaught Exception TypeError: "array_merge(): Argument #1 must be of type array, int given"

This commit is contained in:
Michael 2025-02-16 05:59:23 +00:00
parent c746017cda
commit 48372faec6

View file

@ -573,6 +573,14 @@ class App
// Processes data from GET requests // Processes data from GET requests
$httpinput = $httpInput->process(); $httpinput = $httpInput->process();
if (!is_array($httpinput['variables'])) {
$httpinput['variables'] = [];
}
if (!is_array($httpinput['files'])) {
$httpinput['files'] = [];
}
$input = array_merge($httpinput['variables'], $httpinput['files'], $request); $input = array_merge($httpinput['variables'], $httpinput['files'], $request);
// Let the module run its internal process (init, get, post, ...) // Let the module run its internal process (init, get, post, ...)