Merge pull request #14820 from annando/exception

Fixes: Uncaught Exception TypeError: "array_merge(): Argument #1 must be of type array, int given"
This commit is contained in:
Tobias Diekershoff 2025-02-16 10:00:25 +01:00 committed by GitHub
commit 02f693488f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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);