summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-07 03:17:25 +0200
committeradmin <devnull@localhost>2006-10-07 03:17:25 +0200
commit8f0a8f693307a6d04b8a50aa11f81041c961adf6 (patch)
tree698f2b4d004a5dd604ded5138fc6afdcb776ade0 /system/database
parent61c5717b76bc39823215aaceacdba97264f668d4 (diff)
Diffstat (limited to 'system/database')
-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;
}