summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-03-30 17:58:23 +0200
committerAndrey Andreev <narf@devilix.net>2014-03-30 17:58:23 +0200
commit9cab42746a4f1bfcce9620fa87bec5d2f590666e (patch)
tree17dbedacb377c9c51ffacbab4266e504a4731937
parenta8b0efb5012618dcfa54a88a417929f7d1f2be15 (diff)
Fix #2976
-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]);