From 69a2490a63bdfa8579b14f529639edc693ead527 Mon Sep 17 00:00:00 2001 From: zYne <zYne@625475ce-881a-0410-a577-b389adb331d8> Date: Thu, 11 Jan 2007 23:57:30 +0000 Subject: [PATCH] --- lib/Doctrine/Db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Db.php b/lib/Doctrine/Db.php index b69462981..e01ebccd9 100644 --- a/lib/Doctrine/Db.php +++ b/lib/Doctrine/Db.php @@ -100,8 +100,8 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte */ public function __construct($dsn, $user = null, $pass = null) { - // check the dsn is PEAR-like or not - if ( ! isset($user) && strpos($dsn, '://')) { + // check if dsn is PEAR-like or not + if ( ! isset($user) || strpos($dsn, '://')) { $a = self::parseDSN($dsn); extract($a);