summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-01-30 00:43:09 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-01-30 00:43:09 +0100
commit2712610b7ce4b8beb6984558e4a919c66fb40ca9 (patch)
tree4d659ef33832f0cdbaacd387cf0eb1ed68b17b5a /system/libraries
parent15a34776698d8c42d109a7568468a6d08c5817e9 (diff)
fixed bug (#3321) where the uri_string was not being set properly when retrieved from $_GET (segment based GET, not ?c=controller)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/URI.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/system/libraries/URI.php b/system/libraries/URI.php
index 1349ebedb..6c8eb2e23 100644
--- a/system/libraries/URI.php
+++ b/system/libraries/URI.php
@@ -67,11 +67,7 @@ class CI_URI {
// can be unreliable in some environments
if (is_array($_GET) AND count($_GET) == 1)
{
- // Note: Due to a bug in current() that affects some versions
- // of PHP we can not pass function call directly into it
- $key = array_keys($_GET);
- $index = current($key);
- $this->uri_string = $_GET[$index];
+ $this->uri_string = key($_GET);
return;
}