Skip to content

Commit

Permalink
Fixed a bug in createRightNode()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/DB_NestedSet/trunk@135138 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Daniel Khan committed Jul 15, 2003
1 parent f16d855 commit bd48b9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NestedSet.php
Expand Up @@ -1053,9 +1053,10 @@ function createRightNode($target, $values)
// Open the gap within the current level
$sql = "UPDATE $tb SET $freh=$freh+1
WHERE $froot=" . $this->db->quote($rootid) . " AND
$flft>$lft AND
$freh>$parent_order AND
$flevel=$level AND
$flft BETWEEN $plft AND $prgt";

$res = $this->db->query($sql);
$this->_testFatalAbort($res, __FILE__, __LINE__);

Expand Down

0 comments on commit bd48b9b

Please sign in to comment.