diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-09-22 07:01:05 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-09-22 07:01:05 +0000 |
commit | ec3214bbf21afb479165633c9f98571a014b73b1 (patch) | |
tree | 76f53b9bba41bfd46c6e431def68ef7ee587659a | |
parent | 33c3ff7e12130d088674cf74329978ff8ca09809 (diff) | |
download | semanticscuttle-ec3214bbf21afb479165633c9f98571a014b73b1.tar.gz semanticscuttle-ec3214bbf21afb479165633c9f98571a014b73b1.tar.bz2 |
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
-rw-r--r-- | search.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |