Merge branch 'master' of http://git.gitphp.org/gitphp
Merge branch 'master' of http://git.gitphp.org/gitphp

--- a/include/controller/ControllerBase.class.php
+++ b/include/controller/ControllerBase.class.php
@@ -558,7 +558,11 @@
 			$this->tpl->assign('router', $this->router);
 		}
 
-		$getvars = explode('&', $_SERVER['QUERY_STRING']);
+		$getvars = array();
+		if (isset($_SERVER['QUERY_STRING'])) {
+			$getvars = explode('&', $_SERVER['QUERY_STRING']);
+		}
+
 		$getvarsmapped = array();
 		foreach ($getvars as $varstr) {
 			$eqpos = strpos($varstr, '=');

comments