Commit 9565d848 authored by David Zuelke's avatar David Zuelke

fix return values

parent 567235fd
......@@ -226,7 +226,7 @@ final class DriverManager
private static function _parseDatabaseUrl(array $params)
{
if (!isset($params['url'])) {
return;
return $params;
}
// (pdo_)?sqlite3?:///... => (pdo_)?sqlite3?://localhost/... or else the URL will be invalid
......@@ -272,5 +272,7 @@ final class DriverManager
parse_str($url['query'], $query); // simply ingest query as extra params, e.g. charset or sslmode
$params = array_merge($params, $query); // parse_str wipes existing array elements
}
return $params;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment