summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-13 04:28:18 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-13 04:28:18 +0100
commit881a79e0ce32bc579ff58449c85e183b96227615 (patch)
treeff37b9ed43ec7e55134695b37569cbcd261d8973 /system/libraries/Router.php
parentfe9e919080a8f834ea20eb287b4496b5a4ea69f7 (diff)
Fixed bug (#3445) where the routed segment array when the default controller is used was not being re-indexed to begin with 1
Diffstat (limited to 'system/libraries/Router.php')
-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;
}