diff options
author | Andrey Andreev <narf@devilix.net> | 2014-04-15 16:46:05 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-04-15 16:46:05 +0200 |
commit | bc89b3ccaf40d8659a2fdb2730cad88ba8cc24ed (patch) | |
tree | c886b9779810798bf5634243577b34e890d2c6b5 /system/core/Router.php | |
parent | b78a8c7d40446a3e2e36772706662fd033fe7d1d (diff) |
#3005
Diffstat (limited to 'system/core/Router.php')
-rw-r--r-- | system/core/Router.php | 3 |
1 files changed, 1 insertions, 2 deletions
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']); } } |