cvs: pear /Auth/Container DB.php

From: Date: Mon, 12 Aug 2002 20:57:49 +0000
Subject: cvs: pear /Auth/Container DB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5716@lists.php.net to get a copy of this message
mj Mon Aug 12 16:57:49 2002 EDT Modified files: /pear/Auth/Container DB.php Log: * Accept DSN in hash form. Index: pear/Auth/Container/DB.php diff -u pear/Auth/Container/DB.php:1.19 pear/Auth/Container/DB.php:1.20 --- pear/Auth/Container/DB.php:1.19 Fri Jul 26 16:48:53 2002 +++ pear/Auth/Container/DB.php Mon Aug 12 16:57:49 2002 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.19 2002/07/26 20:48:53 mj Exp $ +// $Id: DB.php,v 1.20 2002/08/12 20:57:49 mj Exp $ // require_once "Auth/Container.php"; @@ -30,7 +30,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.19 $ + * @version $Revision: 1.20 $ */ class Auth_Container_DB extends Auth_Container { @@ -91,7 +91,7 @@ */ function _connect($dsn) { - if (is_string($dsn)) { + if (is_string($dsn) || is_array($dsn)) { $this->db = DB::Connect($dsn); } elseif (get_parent_class($dsn) == "db_common") { $this->db = $dsn;

« previous php.pear.cvs (#5716) next »