From 63eac3eb96563336612c69452745190e8af3c813 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 14 Feb 2008 20:23:37 +0000 Subject: little protection in case an array is provided as the $params for the DB class --- system/database/DB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database/DB.php') 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 -- cgit v1.2.3-24-g4f1b