commit | 88a8ad187b13b36d6120eae2344fe16c3a76219d | [log] [tgz] |
---|---|---|
author | admin <devnull@localhost> | Sat Oct 07 03:16:32 2006 +0000 |
committer | admin <devnull@localhost> | Sat Oct 07 03:16:32 2006 +0000 |
tree | 9707b986ae9fe37f226abd5fec76b58d15903858 | |
parent | 81ccb439c2743776728b798bdc7e31db3d826233 [diff] [blame] |
diff --git a/system/database/DB.php b/system/database/DB.php index f7476a6..6223744 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 @@ { return $DB; } - - $obj->db =& $DB; + + $CI =& get_instance(); + $CI->db =& $DB; }