summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB.php')
-rw-r--r--system/database/DB.php2
1 files changed, 1 insertions, 1 deletions
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;
}