]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
do not use path_info when it is not defined
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 22 Sep 2009 07:01:05 +0000 (07:01 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 22 Sep 2009 07:01:05 +0000 (07:01 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@374 b3834d28-1941-0410-a4f8-b48e95affb8f

search.php

index a1e12c92a688b6082da2d0175d647650d5d00a41..ce47236800f4477bcf06eeb5afef2438809ba652 100644 (file)
@@ -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) {