Fix TreeNodeIterator::isEmpty()
This commit is contained in:
parent
528be1ee79
commit
a5119a7a2e
|
@ -92,6 +92,6 @@ class TreeNodeIterator implements RecursiveIterator
|
|||
*/
|
||||
public function isEmpty()
|
||||
{
|
||||
return empty($this->children);
|
||||
return ! $this->children->count();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue