summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.php b/index.php
index b180e2b65..a8890e9a3 100644
--- a/index.php
+++ b/index.php
@@ -27,12 +27,13 @@ $action = null;
function getPath($req)
{
- if (common_config('site', 'fancy')) {
+ if ((common_config('site', 'fancy') || !array_key_exists('PATH_INFO', $_SERVER))
+ && array_key_exists('p', $req)) {
return $req['p'];
- } else if ($_SERVER['PATH_INFO']) {
+ } else if (array_key_exists('PATH_INFO', $_SERVER)) {
return $_SERVER['PATH_INFO'];
} else {
- return $req['p'];
+ return null;
}
}