From a45d9471edb09df64a6c1d8e8521c84e4644cd59 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 10 Sep 2017 14:02:16 +0200 Subject: [PATCH] If $_REQUEST is empty, array_merge == null. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index d96f2396e4..84a992efb3 100644 --- a/index.php +++ b/index.php @@ -271,7 +271,7 @@ function main() common_redirect(common_local_url($args['action'], $args)); } - $args = array_merge($args, $_REQUEST); + $args = array_merge($args, $_REQUEST ?: []); Event::handle('ArgsInitialize', array(&$args)); -- 2.39.5