summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
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 8f25e5e1a..078f1ef0f 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -65,7 +65,7 @@ function &DB($params = '', $active_record_override = FALSE)
require_once(BASEPATH.'database/DB_driver'.EXT);
- if ($active_record == TRUE)
+ if (! isset($active_record) OR $active_record == TRUE)
{
require_once(BASEPATH.'database/DB_active_rec'.EXT);