summaryrefslogtreecommitdiffstats
path: root/system/libraries/URI.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-07-25 20:47:11 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-07-25 20:47:11 +0200
commit5fbffd780bb24c0fb925ffb26a9036f008d9b664 (patch)
tree317bbdbc7c825fb3f93596b21f70abfd4d69024b /system/libraries/URI.php
parentd8de26ea04a83d5d138e8771c69ae790b4cc6a78 (diff)
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;
}