diff --git a/pear/DB.php b/pear/DB.php index 2cc8016accd..be6ccd4a6d6 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,