From ec3214bbf21afb479165633c9f98571a014b73b1 Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 22 Sep 2009 07:01:05 +0000 Subject: 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 --- search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3-54-g00ecf