Commit 6b5aa0c9 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 154d6c4f
...@@ -100,7 +100,8 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte ...@@ -100,7 +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)
{ {
if ( ! isset($user)) { // check the dsn is PEAR-like or not
if ( ! isset($user) && strpos($dsn, '://')) {
$a = self::parseDSN($dsn); $a = self::parseDSN($dsn);
extract($a); extract($a);
......
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