From 2712610b7ce4b8beb6984558e4a919c66fb40ca9 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 29 Jan 2008 23:43:09 +0000 Subject: fixed bug (#3321) where the uri_string was not being set properly when retrieved from $_GET (segment based GET, not ?c=controller) --- system/libraries/URI.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'system/libraries/URI.php') 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; } -- cgit v1.2.3-24-g4f1b