From 88a8ad187b13b36d6120eae2344fe16c3a76219d Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 7 Oct 2006 03:16:32 +0000 Subject: --- system/database/DB.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'system/database/DB.php') diff --git a/system/database/DB.php b/system/database/DB.php index f7476a68e..62237440f 100644 --- a/system/database/DB.php +++ b/system/database/DB.php @@ -24,8 +24,6 @@ */ function DB($params = '', $return = FALSE, $active_record = FALSE) { - $obj =& get_instance(); - // Do we even need to load the database class? if (class_exists('CI_DB') AND $return == FALSE AND $active_record == FALSE) { @@ -92,8 +90,9 @@ function DB($params = '', $return = FALSE, $active_record = FALSE) { return $DB; } - - $obj->db =& $DB; + + $CI =& get_instance(); + $CI->db =& $DB; } -- cgit v1.2.3-24-g4f1b