Commit a1ef5fbf authored by Jonathan.Wage's avatar Jonathan.Wage

Fixed issue with isValidNode() and it not accepting an argument when it should allow it.

parent 6f466c3f
......@@ -660,9 +660,13 @@ class Doctrine_Node_NestedSet extends Doctrine_Node implements Doctrine_Node_Int
*
* @return bool
*/
public function isValidNode()
public function isValidNode(Doctrine_Record $record = null)
{
return ($this->getRightValue() > $this->getLeftValue());
if ($record === null) {
return ($this->getRightValue() > $this->getLeftValue());
} else {
return ($record->getNode()->getRightValue() > $record->getNode()->getLeftValue());
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment