From: cweiske Date: Tue, 22 Sep 2009 07:01:05 +0000 (+0000) Subject: do not use path_info when it is not defined X-Git-Tag: v0.94~10 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ec3214bbf21afb479165633c9f98571a014b73b1;p=semanticscuttle.git do not use path_info when it is not defined git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@374 b3834d28-1941-0410-a4f8-b48e95affb8f --- diff --git a/search.php b/search.php index a1e12c9..ce47236 100644 --- a/search.php +++ b/search.php @@ -43,7 +43,8 @@ if (POST_TERMS != '') { $currentUserId = $userservice->getCurrentUserId(); - $exploded = explode('/', $_SERVER['PATH_INFO']); + $exploded = isset($_SERVER['PATH_INFO']) + ? explode('/', $_SERVER['PATH_INFO']) : null; if(count($exploded) == 4) { list($url, $range, $terms, $page) = $exploded; } else if (count($exploded) == 2) {