From 8f0a8f693307a6d04b8a50aa11f81041c961adf6 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 7 Oct 2006 01:17:25 +0000 Subject: --- system/database/DB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database') diff --git a/system/database/DB.php b/system/database/DB.php index a60c98e2e..f7476a68e 100644 --- a/system/database/DB.php +++ b/system/database/DB.php @@ -27,7 +27,7 @@ function DB($params = '', $return = FALSE, $active_record = FALSE) $obj =& get_instance(); // Do we even need to load the database class? - if ($obj->_ci_is_loaded('db') == TRUE AND $return == FALSE AND $active_record == FALSE) + if (class_exists('CI_DB') AND $return == FALSE AND $active_record == FALSE) { return FALSE; } -- cgit v1.2.3-24-g4f1b