Skip to content

Commit a6faab2

Browse files
committed
Fixes bcit-ci#6175
This was introduced via bcit-ci#3752.
1 parent 7eda20f commit a6faab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/core/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CI_Router {
8484
*
8585
* @var string
8686
*/
87-
public $directory;
87+
public $directory = '';
8888

8989
/**
9090
* Default controller (and method if specific)
@@ -333,7 +333,7 @@ protected function _set_default_controller()
333333
protected function _validate_request($segments)
334334
{
335335
$c = count($segments);
336-
$directory_override = isset($this->directory);
336+
$directory_override = $this->directory !== '';
337337

338338
// Loop through our segments and return as soon as a controller
339339
// is found or when such a directory doesn't exist

0 commit comments

Comments
 (0)