summaryrefslogtreecommitdiffstats
path: root/system/core/Router.php
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@gmail.com>2023-01-26 23:11:27 +0100
committerGeorge Petculescu <gxgpet@gmail.com>2023-01-26 23:11:27 +0100
commita6faab2ebf082eefff9c2422fce016e49da548bf (patch)
tree5b03057577d7ae41116353a539ade2206af2af28 /system/core/Router.php
parent7eda20fae113e9fe6cb52c218d111223f059c5e7 (diff)
Fixes #6175
This was introduced via #3752.
Diffstat (limited to 'system/core/Router.php')
-rw-r--r--system/core/Router.php4
1 files 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