diff options
author | admin <devnull@localhost> | 2006-10-16 21:02:48 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-16 21:02:48 +0200 |
commit | 9a661810d2b9b96c458c1f369f0059b31012b6a8 (patch) | |
tree | 76de207fe698e2e217821622a55bd313083128a3 /system/database/DB.php | |
parent | b06d69f03f5149877390d7e99882006a141268ff (diff) |
Diffstat (limited to 'system/database/DB.php')
-rw-r--r-- | system/database/DB.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB.php b/system/database/DB.php index a148c9ffe..d2afce982 100644 --- a/system/database/DB.php +++ b/system/database/DB.php @@ -22,7 +22,7 @@ * @author Rick Ellis * @link http://www.codeigniter.com/user_guide/database/ */ -function DB($params = '', $active_record = FALSE) +function &DB($params = '', $active_record = FALSE) { // Load the DB config file if a DSN string wasn't passed if (is_string($params) AND strpos($params, '://') === FALSE) @@ -78,7 +78,7 @@ function DB($params = '', $active_record = FALSE) // Instantiate the DB adapter $driver = 'CI_DB_'.$params['dbdriver'].'_driver'; - $DB = new $driver($params); + $DB =& new $driver($params); return $DB; } |