1
0
mirror of synced 2025-03-20 06:53:55 +03:00

tiny update for Zend standards

This commit is contained in:
david 2007-01-08 11:48:27 +00:00
parent fc4261d1f7
commit 971083c836

View File

@ -112,8 +112,9 @@ class Doctrine_Tree_NestedSet extends Doctrine_Tree implements Doctrine_Tree_Int
$options = array_merge(array('include_record'=>true), $options);
// remove root node from collection if not required
if($options['include_record'] == false)
if ($options['include_record'] == false) {
$tree->remove(0);
}
// set collection for iterator
$options['collection'] = $tree;