cvs: pear /Auth/Container DB.php

From: Date: Mon, 30 Aug 2004 09:34:50 +0000
Subject: cvs: pear /Auth/Container DB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23492@lists.php.net to get a copy of this message
yavo Mon Aug 30 05:34:50 2004 EDT Modified files: /pear/Auth/Container DB.php Log: Bug #2186 http://cvs.php.net/diff.php/pear/Auth/Container/DB.php?r1=1.49&r2=1.50&ty=u Index: pear/Auth/Container/DB.php diff -u pear/Auth/Container/DB.php:1.49 pear/Auth/Container/DB.php:1.50 --- pear/Auth/Container/DB.php:1.49 Tue Jul 13 03:45:27 2004 +++ pear/Auth/Container/DB.php Mon Aug 30 05:34:49 2004 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.49 2004/07/13 07:45:27 yavo Exp $ +// $Id: DB.php,v 1.50 2004/08/30 09:34:49 yavo Exp $ // require_once 'Auth/Container.php'; @@ -30,7 +30,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.49 $ + * @version $Revision: 1.50 $ */ class Auth_Container_DB extends Auth_Container { @@ -93,7 +93,7 @@ { if (is_string($dsn) || is_array($dsn)) { $this->db = DB::Connect($dsn, $this->options['db_options']); - } elseif (strtolower(get_parent_class($dsn)) == "db_common") { + } elseif (is_a($dsn, 'db_common')) { $this->db = $dsn; } elseif (DB::isError($dsn)) { return PEAR::raiseError($dsn->getMessage(), $dsn->getCode());

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