diff --git a/index.php b/index.php
index cd97e4745..31b876943 100644
--- a/index.php
+++ b/index.php
@@ -115,7 +115,10 @@
$redirect = e107::getParser()->replaceConstants($newLocation);
list($file,$query) = explode("?",$redirect,2);
- parse_str($query,$_GET);
+ if(!empty($query))
+ {
+ parse_str($query,$_GET);
+ }
e107::getMessage()->addDebug('e_URL in '.$plug.' matched '.$v['regex'].' and included: '.$file.' with $_GET: '.print_a($_GET,true));