cvs: pear /Auth/Container MDB2.php

From: Date: Mon, 26 Apr 2004 19:50:31 +0000
Subject: cvs: pear /Auth/Container MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-18774@lists.php.net to get a copy of this message
toby Mon Apr 26 15:50:31 2004 EDT Modified files: /pear/Auth/Container MDB2.php Log: * Fix new method namings of MDB2. http://cvs.php.net/diff.php/pear/Auth/Container/MDB2.php?r1=1.1&r2=1.2&ty=u Index: pear/Auth/Container/MDB2.php diff -u pear/Auth/Container/MDB2.php:1.1 pear/Auth/Container/MDB2.php:1.2 --- pear/Auth/Container/MDB2.php:1.1 Tue Mar 30 15:09:22 2004 +++ pear/Auth/Container/MDB2.php Mon Apr 26 15:50:31 2004 @@ -16,7 +16,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2.php,v 1.1 2004/03/30 20:09:22 quipo Exp $ +// $Id: MDB2.php,v 1.2 2004/04/26 19:50:31 toby Exp $ // require_once 'Auth/Container.php'; @@ -30,7 +30,7 @@ * * @author Lorenzo Alberton <l.alberton@quipo.it> * @package Auth - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ class Auth_Container_MDB2 extends Auth_Container { @@ -228,7 +228,6 @@ } else { $sql_from = $this->options['usernamecol'] . ', '. $this->options['passwordcol'] . $this->options['db_fields']; } - $query = sprintf("SELECT %s FROM %s WHERE %s = %s", $sql_from, $this->options['table'], @@ -236,9 +235,8 @@ $this->db->quote($username, 'text') ); - $res = $this->db->getRow($query, null, null, null, MDB2_FETCHMODE_ASSOC); - - if (MDB::isError($res) || PEAR::isError($res)) { + $res = $this->db->queryRow($query, null, MDB2_FETCHMODE_ASSOC); + if (MDB2::isError($res) || PEAR::isError($res)) { return PEAR::raiseError($res->getMessage(), $res->getCode()); } if (!is_array($res)) { @@ -426,4 +424,4 @@ // }}} } -?> \ No newline at end of file +?>

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