Fix incompatibility issue with PHP < 5.4

This commit is contained in:
Gautham Warrier 2014-03-04 17:06:29 +05:30
parent 78638f34d1
commit 61743f2cac
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,10 @@
if (is_file($docs_path . "/index.md")) return $docs_path . "/index.md";
else {
if (empty($options['languages'])) return $base_doc;
else return $base_doc[array_keys($base_doc)[0]];
else {
$t = array_keys($base_doc);
return $base_doc[$t[0]];
}
}
} else {
$url = explode("/", $url);