From 881a79e0ce32bc579ff58449c85e183b96227615 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 13 Feb 2008 03:28:18 +0000 Subject: Fixed bug (#3445) where the routed segment array when the default controller is used was not being re-indexed to begin with 1 --- system/libraries/Router.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system/libraries/Router.php') 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; } -- cgit v1.2.3-24-g4f1b