From 9cab42746a4f1bfcce9620fa87bec5d2f590666e Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sun, 30 Mar 2014 18:58:23 +0300 Subject: Fix #2976 --- system/core/Router.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system') 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]); -- cgit v1.2.3-24-g4f1b