cain Thu Jul 3 07:51:11 2003 EDT
Modified files:
/pear/Tree/Dynamic DBnested.php
Log:
- bugfix in _remove()
Index: pear/Tree/Dynamic/DBnested.php
diff -u pear/Tree/Dynamic/DBnested.php:1.29 pear/Tree/Dynamic/DBnested.php:1.30
--- pear/Tree/Dynamic/DBnested.php:1.29 Thu Jul 3 06:36:59 2003
+++ pear/Tree/Dynamic/DBnested.php Thu Jul 3 07:51:10 2003
@@no-spam -16,7 +16,7 @@no-spam
// | Authors: |
// +----------------------------------------------------------------------+
//
-// $Id: DBnested.php,v 1.29 2003/07/03 10:36:59 cain Exp $
+// $Id: DBnested.php,v 1.30 2003/07/03 11:51:10 cain Exp $
require_once('Tree/Common.php');
@@no-spam -349,7 +349,7 @@no-spam
%s
SET %s=%s-$delta
WHERE
- %s %s < s
+ %s %s < %s
AND
%s>%s",
$this->table,
@@no-spam -669,7 +669,7 @@no-spam
*/
function getElement( $id )
{
- $query = sprintf( 'SELECT * FROM %s WHERE%s %s=%s',
+ $query = sprintf( 'SELECT * FROM %s WHERE %s %s=%s',
$this->table,
$this->_getWhereAddOn(),
$this->_getColName('id'),