summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index 6fca45227..501a8ee82 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -252,7 +252,7 @@ class CI_Router {
}
// Loop through the route array looking for wild-cards
- foreach (array_slice($this->routes, 1) as $key => $val)
+ foreach ($this->routes as $key => $val)
{
// Convert wild-cards to RegEx
$key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));