summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-04-15 16:46:05 +0200
committerAndrey Andreev <narf@devilix.net>2014-04-15 16:46:05 +0200
commitbc89b3ccaf40d8659a2fdb2730cad88ba8cc24ed (patch)
treec886b9779810798bf5634243577b34e890d2c6b5 /system/core
parentb78a8c7d40446a3e2e36772706662fd033fe7d1d (diff)
#3005
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Router.php3
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']);
}
}