summaryrefslogtreecommitdiff
path: root/search.php
diff options
context:
space:
mode:
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) {