We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eda20f commit a6faab2Copy full SHA for a6faab2
system/core/Router.php
@@ -84,7 +84,7 @@ class CI_Router {
84
*
85
* @var string
86
*/
87
- public $directory;
+ public $directory = '';
88
89
/**
90
* Default controller (and method if specific)
@@ -333,7 +333,7 @@ protected function _set_default_controller()
333
protected function _validate_request($segments)
334
{
335
$c = count($segments);
336
- $directory_override = isset($this->directory);
+ $directory_override = $this->directory !== '';
337
338
// Loop through our segments and return as soon as a controller
339
// is found or when such a directory doesn't exist
0 commit comments