From 85c7c61523177bb9307c6ea8439090de4c39c457 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 14 Jan 2008 13:18:36 +0000 Subject: fix a segment db cache bug --- system/database/DB_cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php index f8ea616cd..1e7410708 100644 --- a/system/database/DB_cache.php +++ b/system/database/DB_cache.php @@ -163,7 +163,7 @@ class CI_DB_Cache { { if ($segment_one == '') { - $segment_one = ($this->CI->uri->segment(1) == FALSE) ? 'default' : $this->CI->uri->segment(2); + $segment_one = ($this->CI->uri->segment(1) == FALSE) ? 'default' : $this->CI->uri->segment(1); } if ($segment_two == '') -- cgit v1.2.3-24-g4f1b