summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-14 21:23:37 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-14 21:23:37 +0100
commit63eac3eb96563336612c69452745190e8af3c813 (patch)
treecbe9cd1d155687624ed819bbea713ecfb0d6acc3 /system/database/DB.php
parent9967ab4fdb3d6e358d44f063d2000ebf8b71b95a (diff)
little protection in case an array is provided as the $params for the DB class
Diffstat (limited to 'system/database/DB.php')
-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 c3e7722d3..16ca1c888 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -46,7 +46,7 @@ function &DB($params = '', $active_record_override = FALSE)
$params = $db[$active_group];
}
- else
+ elseif (is_string($params))
{
/* parse the URL from the DSN string