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
This commit is contained in:
cweiske 2009-09-22 07:01:05 +00:00
parent 33c3ff7e12
commit ec3214bbf2

View 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) {