From a6faab2ebf082eefff9c2422fce016e49da548bf Mon Sep 17 00:00:00 2001 From: George Petculescu Date: Fri, 27 Jan 2023 00:11:27 +0200 Subject: Fixes #6175 This was introduced via #3752. --- system/core/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/core/Router.php b/system/core/Router.php index e15ceff71..e0fb922f1 100644 --- a/system/core/Router.php +++ b/system/core/Router.php @@ -84,7 +84,7 @@ class CI_Router { * * @var string */ - public $directory; + public $directory = ''; /** * Default controller (and method if specific) @@ -333,7 +333,7 @@ class CI_Router { protected function _validate_request($segments) { $c = count($segments); - $directory_override = isset($this->directory); + $directory_override = $this->directory !== ''; // Loop through our segments and return as soon as a controller // is found or when such a directory doesn't exist -- cgit v1.2.3-24-g4f1b