1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00
This commit is contained in:
zYne 2007-01-11 23:57:30 +00:00
parent 6993485425
commit 69a2490a63

View file

@ -100,8 +100,8 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte
*/ */
public function __construct($dsn, $user = null, $pass = null) public function __construct($dsn, $user = null, $pass = null)
{ {
// check the dsn is PEAR-like or not // check if dsn is PEAR-like or not
if ( ! isset($user) && strpos($dsn, '://')) { if ( ! isset($user) || strpos($dsn, '://')) {
$a = self::parseDSN($dsn); $a = self::parseDSN($dsn);
extract($a); extract($a);