summaryrefslogtreecommitdiffstats
path: root/system/libraries/URI.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/URI.php')
-rw-r--r--system/libraries/URI.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/libraries/URI.php b/system/libraries/URI.php
index 254a8a6e9..e3cf9c55b 100644
--- a/system/libraries/URI.php
+++ b/system/libraries/URI.php
@@ -69,8 +69,9 @@ class CI_URI {
{
// 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);
- $this->uri_string = current($keys);
+ $key = array_keys($_GET);
+ $index = current($key);
+ $this->uri_string = $_GET[$index];
return;
}