summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Router.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index d24192c18..f6464a31d 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -102,6 +102,9 @@ class CI_Router {
$this->set_method('index');
$this->_set_request(array($this->default_controller, 'index'));
+ // re-index the routed segments array so it starts with 1 rather than 0
+ $this->uri->_reindex_segments();
+
log_message('debug', "No URI present. Default controller set.");
return;
}