cvs: pear /Perm_LiveUser/Auth/Container DB.php MDB.php MDB2.php

From: Date: Mon, 07 Jun 2004 19:48:51 +0000
Subject: cvs: pear /Perm_LiveUser/Auth/Container DB.php MDB.php MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20333@lists.php.net to get a copy of this message
arnaud Mon Jun 7 15:48:51 2004 EDT Modified files: /pear/Perm_LiveUser/Auth/Container DB.php MDB.php MDB2.php Log: * looping throught the wrong array http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/DB.php?r1=1.49&r2=1.50&ty=u Index: pear/Perm_LiveUser/Auth/Container/DB.php diff -u pear/Perm_LiveUser/Auth/Container/DB.php:1.49 pear/Perm_LiveUser/Auth/Container/DB.php:1.50 --- pear/Perm_LiveUser/Auth/Container/DB.php:1.49 Mon Jun 7 12:50:03 2004 +++ pear/Perm_LiveUser/Auth/Container/DB.php Mon Jun 7 15:48:51 2004 @@ -47,7 +47,7 @@ * 'allowDuplicateHandles' => 1); * * @author Markus Wolff <wolff@21st.de> - * @version $Id: DB.php,v 1.49 2004/06/07 16:50:03 arnaud Exp $ + * @version $Id: DB.php,v 1.50 2004/06/07 19:48:51 arnaud Exp $ * @package LiveUser * @category authentication */ @@ -210,7 +210,7 @@ $fields = array(); foreach ($this->authTableCols as $key => $value) { if (sizeof($value) > 0) { - foreach ($fields as $alias => $field_data) { + foreach ($value as $alias => $field_data) { $fields[] = $field_data['name'] . ' AS ' . $alias; } } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/MDB.php?r1=1.30&r2=1.31&ty=u Index: pear/Perm_LiveUser/Auth/Container/MDB.php diff -u pear/Perm_LiveUser/Auth/Container/MDB.php:1.30 pear/Perm_LiveUser/Auth/Container/MDB.php:1.31 --- pear/Perm_LiveUser/Auth/Container/MDB.php:1.30 Mon Jun 7 12:50:03 2004 +++ pear/Perm_LiveUser/Auth/Container/MDB.php Mon Jun 7 15:48:51 2004 @@ -48,7 +48,7 @@ * 'allowDuplicateHandles' => 1); * * @author Markus Wolff <wolff@21st.de> - * @version $Id: MDB.php,v 1.30 2004/06/07 16:50:03 arnaud Exp $ + * @version $Id: MDB.php,v 1.31 2004/06/07 19:48:51 arnaud Exp $ * @package LiveUser * @category authentication */ @@ -225,7 +225,7 @@ $fields = array(); foreach ($this->authTableCols as $key => $value) { if (sizeof($value) > 0) { - foreach ($fields as $alias => $field_data) { + foreach ($value as $alias => $field_data) { $fields[] = $field_data['name'] . ' AS ' . $alias; $types[] = $field_data['type']; } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/MDB2.php?r1=1.9&r2=1.10&ty=u Index: pear/Perm_LiveUser/Auth/Container/MDB2.php diff -u pear/Perm_LiveUser/Auth/Container/MDB2.php:1.9 pear/Perm_LiveUser/Auth/Container/MDB2.php:1.10 --- pear/Perm_LiveUser/Auth/Container/MDB2.php:1.9 Mon Jun 7 12:50:03 2004 +++ pear/Perm_LiveUser/Auth/Container/MDB2.php Mon Jun 7 15:48:51 2004 @@ -48,7 +48,7 @@ * 'allowDuplicateHandles' => 1); * * @author Markus Wolff <wolff@21st.de> - * @version $Id: MDB2.php,v 1.9 2004/06/07 16:50:03 arnaud Exp $ + * @version $Id: MDB2.php,v 1.10 2004/06/07 19:48:51 arnaud Exp $ * @package LiveUser * @category authentication */ @@ -216,10 +216,12 @@ $success = false; $fields = array(); - foreach ($this->authTableCols['required'] as $key => $value) { - foreach ($fields as $alias => $field_data) { - $fields[] = $field_data['name'] . ' AS ' . $alias; - $types[] = $field_data['type']; + foreach ($this->authTableCols as $key => $value) { + if (sizeof($value) > 0) { + foreach ($fields as $alias => $field_data) { + $fields[] = $field_data['name'] . ' AS ' . $alias; + $types[] = $field_data['type']; + } } }

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