summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Router.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/core/Router.php b/system/core/Router.php
index 765e32374..ea4f4a4f7 100644
--- a/system/core/Router.php
+++ b/system/core/Router.php
@@ -258,6 +258,10 @@ class CI_Router {
{
$this->set_method($segments[1]);
}
+ else
+ {
+ $segments[1] = 'index';
+ }
array_unshift($segments, NULL);
unset($segments[0]);