From bc89b3ccaf40d8659a2fdb2730cad88ba8cc24ed Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 15 Apr 2014 17:46:05 +0300 Subject: #3005 --- system/core/Router.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system') diff --git a/system/core/Router.php b/system/core/Router.php index ea4f4a4f7..1bb18b088 100644 --- a/system/core/Router.php +++ b/system/core/Router.php @@ -130,9 +130,8 @@ class CI_Router { $this->set_class($routing['controller']); } - if (isset($routing['function'])) + if ( ! empty($routing['function'])) { - $routing['function'] = empty($routing['function']) ? 'index' : $routing['function']; $this->set_method($routing['function']); } } -- cgit v1.2.3-24-g4f1b