summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-01-30 22:00:33 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-01-30 22:00:33 +0100
commit4e1241bbe6c0459c28d9a7cda89ef1c81dec1bd4 (patch)
tree91e5ee98a2ba31440cb8de18f3c06de5ecb30f8c /system
parent72d61337496738d276d7671f0e07f201713aec6a (diff)
added default value for $active_record when it's not set
Diffstat (limited to 'system')
-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);