commit | bc89b3ccaf40d8659a2fdb2730cad88ba8cc24ed | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Tue Apr 15 17:46:05 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Tue Apr 15 17:46:05 2014 +0300 |
tree | c886b9779810798bf5634243577b34e890d2c6b5 | |
parent | b78a8c7d40446a3e2e36772706662fd033fe7d1d [diff] [blame] |
#3005
diff --git a/system/core/Router.php b/system/core/Router.php index ea4f4a4..1bb18b0 100644 --- a/system/core/Router.php +++ b/system/core/Router.php
@@ -130,9 +130,8 @@ $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']); } }