From 61743f2cacbd0b5968e0810d1e53181fc3abe087 Mon Sep 17 00:00:00 2001 From: Gautham Warrier Date: Tue, 4 Mar 2014 17:06:29 +0530 Subject: [PATCH] Fix incompatibility issue with PHP < 5.4 --- libs/live.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/live.php b/libs/live.php index e5d71d5..474b9c0 100644 --- a/libs/live.php +++ b/libs/live.php @@ -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);