]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If $_REQUEST is empty, array_merge == null.
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 10 Sep 2017 12:02:16 +0000 (14:02 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 10 Sep 2017 12:02:16 +0000 (14:02 +0200)
index.php

index d96f2396e41e110482d2a66a52c5b3050e3604b0..84a992efb3731b30d9f0ddc892569195c13dcbec 100644 (file)
--- 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));