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:
parent
33c3ff7e12
commit
ec3214bbf2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user