summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
Diffstat (limited to 'pear')
-rw-r--r--pear/DB.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pear/DB.php b/pear/DB.php
index 2cc8016acc..be6ccd4a6d 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -330,6 +330,9 @@ class DB {
* @return bool FALSE is returned on error
*/
function parseDSN($dsn) {
+ if (is_array($dsn))
+ return $dsn;
+
$parsed = array(
'phptype' => false,
'dbsyntax' => false,