summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-23 23:37:22 +0200
committeradmin <devnull@localhost>2006-10-23 23:37:22 +0200
commit7acd581d9441fb8ada4c46c58f4ec30a01507506 (patch)
tree6e62cffa5d1da5b60dfe06fa0338bf1ac78011f7 /system/libraries/Router.php
parentca335fcd8342ec1422a63ac397a404e73766b0ef (diff)
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index d4d1b2fdb..886433f37 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -295,7 +295,10 @@ class CI_Router {
// can be unreliable in some environments
if (is_array($_GET) AND count($_GET) == 1)
{
- return current(array_keys($_GET));
+ // Note: Due to a bug in current() that affects some versions
+ // of PHP we can not pass function call directly into it
+ $keys = array_keys($_GET);
+ return current($keys);
}
// Is there a PATH_INFO variable?