We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5c59c0d9 authored by Evan Prodromou's avatar Evan Prodromou

avoid notices on undefined array elements

parent 76d506cf
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment