cvs: pear /Auth/Container DB.php

From: Date: Mon, 30 Aug 2004 11:58:52 +0000
Subject: cvs: pear /Auth/Container DB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23500@lists.php.net to get a copy of this message
yavo Mon Aug 30 07:58:52 2004 EDT Modified files: /pear/Auth/Container DB.php Log: Bug #2130 is_a => is_subclass_of http://cvs.php.net/diff.php/pear/Auth/Container/DB.php?r1=1.50&r2=1.51&ty=u Index: pear/Auth/Container/DB.php diff -u pear/Auth/Container/DB.php:1.50 pear/Auth/Container/DB.php:1.51 --- pear/Auth/Container/DB.php:1.50 Mon Aug 30 05:34:49 2004 +++ pear/Auth/Container/DB.php Mon Aug 30 07:58:52 2004 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.50 2004/08/30 09:34:49 yavo Exp $ +// $Id: DB.php,v 1.51 2004/08/30 11:58:52 yavo Exp $ // require_once 'Auth/Container.php'; @@ -30,7 +30,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.50 $ + * @version $Revision: 1.51 $ */ 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 (is_a($dsn, 'db_common')) { + } elseif (is_subclass_of($dsn, 'db_common')) { $this->db = $dsn; } elseif (DB::isError($dsn)) { return PEAR::raiseError($dsn->getMessage(), $dsn->getCode());

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