summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-05 05:31:28 +0200
committeradmin <devnull@localhost>2006-09-05 05:31:28 +0200
commit27818494dca469e96709fd9c54ba8f8461d88714 (patch)
tree71f28ea7d9ed3232e349285aef0be88cf17b774a /system/libraries
parente3817a3d5edcca29e21b3c2f4292abae80070b2b (diff)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Router.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index c7e855a78..de1a6e9a8 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -239,8 +239,14 @@ class CI_Router {
{
$this->set_class($this->default_controller);
$this->set_method('index');
- $this->directory = '';
- return array();
+
+ // Does the default controller exist in the sub-folder?
+ if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$this->default_controller.EXT))
+ {
+ $this->directory = '';
+ return array();
+ }
+
}
return $segments;