From 44437217165f4b8fa6a4cfed6ec4508af39dc4d2 Mon Sep 17 00:00:00 2001 From: ruan Date: Sun, 21 Jun 2020 08:35:32 +0200 Subject: [PATCH] Fix history.php / info.php error when simple_urls is disabled --- inc/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index 0b1f91c..e516983 100644 --- a/inc/page.php +++ b/inc/page.php @@ -97,7 +97,7 @@ class Page { public function get_requested_page() { $keys = array_keys($_GET); - if (count($keys) == 0) return ""; + if (count($keys) == 0 || !$this->is_index) return ""; $request_path = $keys[0]; $local_path = substr($request_path, strlen($this->index_base_path));