summaryrefslogtreecommitdiff
path: root/search.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-22 07:01:05 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-22 07:01:05 +0000
commitec3214bbf21afb479165633c9f98571a014b73b1 (patch)
tree76f53b9bba41bfd46c6e431def68ef7ee587659a /search.php
parent33c3ff7e12130d088674cf74329978ff8ca09809 (diff)
downloadsemanticscuttle-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
Diffstat (limited to 'search.php')
-rw-r--r--search.php3
1 files changed, 2 insertions, 1 deletions
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) {