diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-18 17:58:06 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-18 17:58:06 +0100 |
commit | a4399051455f844f432ac453fb9c3202c4464cf2 (patch) | |
tree | d60eb255b31295d51d7b7a156d4cd6a62feffe1b /system/core/URI.php | |
parent | b2a0e70585367e59bf2d106629c0e9c3ab1370c2 (diff) |
Fix CI_URI:: not being properly indexed
Diffstat (limited to 'system/core/URI.php')
-rw-r--r-- | system/core/URI.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/core/URI.php b/system/core/URI.php index 6e0d7f993..13682cbee 100644 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -156,6 +156,7 @@ class CI_URI { } } + $this->segments[0] = NULL; // Populate the segments array foreach (explode('/', preg_replace('|/*(.+?)/*$|', '\\1', $this->uri_string)) as $val) { @@ -167,6 +168,8 @@ class CI_URI { $this->segments[] = $val; } } + + unset($this->segments[0]); } } |