tiny update for Zend standards
This commit is contained in:
parent
fc4261d1f7
commit
971083c836
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user