cvs: pear /LiveUser_Admin/Storage SQL.php
| From: | Lukas Smith | Date: | Thu, 13 Apr 2006 09:00:25 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Storage SQL.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39584@lists.php.net to get a copy of this message | ||
lsmith Thu Apr 13 09:00:25 2006 UTC
Modified files:
/pear/LiveUser_Admin/Storage SQL.php
Log:
- prevent duplictate entries in the fields not yet linked array
http://cvs.php.net/viewcvs.cgi/pear/LiveUser_Admin/Storage/SQL.php?r1=1.57&r2=1.58&diff_format=u
Index: pear/LiveUser_Admin/Storage/SQL.php
diff -u pear/LiveUser_Admin/Storage/SQL.php:1.57 pear/LiveUser_Admin/Storage/SQL.php:1.58
--- pear/LiveUser_Admin/Storage/SQL.php:1.57 Tue Mar 14 13:11:56 2006
+++ pear/LiveUser_Admin/Storage/SQL.php Thu Apr 13 09:00:25 2006
@@ -57,7 +57,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: SQL.php,v 1.57 2006/03/14 13:11:56 lsmith Exp $
+ * @version CVS: $Id: SQL.php,v 1.58 2006/04/13 09:00:25 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -623,7 +623,7 @@
$orders[$this->prefix.$this->alias[$match[1]].'.'.$match[2]] = $value;
}
- $fields_not_yet_linked = array_merge($fields_tmp, array_keys($filters_tmp),
array_keys($orders_tmp));
+ $fields_not_yet_linked = array_unique(array_merge($fields_tmp, array_keys($filters_tmp),
array_keys($orders_tmp)));
if (empty($fields_not_yet_linked)) {
return $tables;
}