diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-01-30 22:00:33 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-01-30 22:00:33 +0100 |
commit | 4e1241bbe6c0459c28d9a7cda89ef1c81dec1bd4 (patch) | |
tree | 91e5ee98a2ba31440cb8de18f3c06de5ecb30f8c /system/database | |
parent | 72d61337496738d276d7671f0e07f201713aec6a (diff) |
added default value for $active_record when it's not set
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB.php | 2 |
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);
|