From a4399051455f844f432ac453fb9c3202c4464cf2 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 18 Jan 2014 18:58:06 +0200 Subject: Fix CI_URI:: not being properly indexed --- system/core/URI.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system/core/URI.php') 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]); } } -- cgit v1.2.3-24-g4f1b