Fix history.php / info.php error when simple_urls is disabled

This commit is contained in:
ruan 2020-06-21 08:35:32 +02:00
parent 9630eaa52b
commit 4443721716

View File

@ -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));