Fixed a bug (#3269) where the rsegment array would not be set properly when there is no URI request.
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index df72cea..fd0ffa2 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -100,7 +100,8 @@
$this->set_class($this->default_controller);
$this->set_method('index');
-
+ $this->_set_request(array($this->default_controller, 'index'));
+
log_message('debug', "No URI present. Default controller set.");
return;
}