commit | 63eac3eb96563336612c69452745190e8af3c813 | [log] [tgz] |
---|---|---|
author | Derek Jones <derek.jones@ellislab.com> | Thu Feb 14 20:23:37 2008 +0000 |
committer | Derek Jones <derek.jones@ellislab.com> | Thu Feb 14 20:23:37 2008 +0000 |
tree | cbe9cd1d155687624ed819bbea713ecfb0d6acc3 | |
parent | 9967ab4fdb3d6e358d44f063d2000ebf8b71b95a [diff] [blame] |
little protection in case an array is provided as the $params for the DB class
diff --git a/system/database/DB.php b/system/database/DB.php index c3e7722..16ca1c8 100644 --- a/system/database/DB.php +++ b/system/database/DB.php
@@ -46,7 +46,7 @@ $params = $db[$active_group]; } - else + elseif (is_string($params)) { /* parse the URL from the DSN string