cvs: pear /Auth/Container DB.php

From: Date: Mon, 28 Jul 2003 22:33:07 +0000
Subject: cvs: pear /Auth/Container DB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-11797@lists.php.net to get a copy of this message
yavo Mon Jul 28 18:33:07 2003 EDT Modified files: /pear/Auth/Container DB.php Log: Fix when db_fileds is empty Index: pear/Auth/Container/DB.php diff -u pear/Auth/Container/DB.php:1.36 pear/Auth/Container/DB.php:1.37 --- pear/Auth/Container/DB.php:1.36 Mon Jul 28 17:56:55 2003 +++ pear/Auth/Container/DB.php Mon Jul 28 18:33:07 2003 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.36 2003/07/28 21:56:55 yavo Exp $ +// $Id: DB.php,v 1.37 2003/07/28 22:33:07 yavo Exp $ // require_once 'Auth/Container.php'; @@ -30,7 +30,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.36 $ + * @version $Revision: 1.37 $ */ class Auth_Container_DB extends Auth_Container { @@ -201,6 +201,7 @@ if(is_array($this->options['db_fields'])){ $this->options['db_fields'] = join($this->options['db_fields'], ', '); } + $this->options['db_fields'] = ', '.$this->options['db_fields']; } } @@ -233,7 +234,7 @@ $sql_from = "*"; } else{ - $sql_from = $this->options['usernamecol'] . ", ".$this->options['passwordcol'].", ".$this->options['db_fields']; + $sql_from = $this->options['usernamecol'] . ", ".$this->options['passwordcol'].$this->options['db_fields']; } $query = "SELECT ! FROM ! WHERE ! = ?"; @@ -288,7 +289,7 @@ $sql_from = "*"; } else{ - $sql_from = $this->options['usernamecol'] . ", ".$this->options['passwordcol'].", ".$this->options['db_fields']; + $sql_from = $this->options['usernamecol'] . ", ".$this->options['passwordcol'].$this->options['db_fields']; } $query = sprintf("SELECT %s FROM %s",

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