summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
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']);
}
}