cvs: pear /DB_NestedSet NestedSet.php
| From: | Daniel Khan | Date: | Tue, 09 Sep 2003 22:02:02 +0000 |
| Subject: | cvs: pear /DB_NestedSet NestedSet.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12590@lists.php.net to get a copy of this message | ||
datenpunk Tue Sep 9 18:02:02 2003 EDT
Modified files:
/pear/DB_NestedSet NestedSet.php
Log:
- made _values2Query() use array_merge instead of adding the 2 arrays together
because it was possible to overwrite internal values like the rootid with
the values array passed to all creation methods.
Index: pear/DB_NestedSet/NestedSet.php
diff -u pear/DB_NestedSet/NestedSet.php:1.35 pear/DB_NestedSet/NestedSet.php:1.36
--- pear/DB_NestedSet/NestedSet.php:1.35 Mon Sep 8 18:25:44 2003
+++ pear/DB_NestedSet/NestedSet.php Tue Sep 9 18:02:01 2003
@@ -16,7 +16,7 @@
// | Authors: Daniel Khan <dk@webcluster.at> |
// | Jason Rust <jason@rustyparts.com> |
// +----------------------------------------------------------------------+
-// $Id: NestedSet.php,v 1.35 2003/09/08 22:25:44 datenpunk Exp $
+// $Id: NestedSet.php,v 1.36 2003/09/09 22:02:01 datenpunk Exp $
//
// CREDITS:
@@ -59,7 +59,7 @@
*
* @author Daniel Khan <dk@webcluster.at>
* @package DB_NestedSet
-* @version $Revision: 1.35 $
+* @version $Revision: 1.36 $
* @access public
*/
@@ -2101,7 +2101,7 @@
$this->_debugMessage('_values2Query($values, $addval = false)');
}
if (is_array($addval)) {
- $values = $values + $addval;
+ $values = array_merge($values, $addval);
}
$arq = array();
@@ -2168,7 +2168,7 @@
* Generic class for node objects
*
* @autor Daniel Khan <dk@webcluster.at>;
-* @version $Revision: 1.35 $
+* @version $Revision: 1.36 $
* @package DB_NestedSet
*
* @access private