2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-28 05:42:19 +00:00

Fix documentation list when no PATH_INFO

This commit is contained in:
Daniel James
2016-10-26 19:38:13 +01:00
parent 350982b033
commit d2ea07cee1

View File

@@ -30,7 +30,8 @@ class BoostDocumentation
// Get Archive Location
if (preg_match($pattern, $_SERVER["PATH_INFO"], $path_parts)) {
if (array_key_exists('PATH_INFO', $_SERVER) &&
preg_match($pattern, $_SERVER["PATH_INFO"], $path_parts)) {
if ($path_parts[1] === 'regression') {
$version = null;
$version_dir = 'regression';