PlHeap::iterator returns a flat array iterator.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 13 Mar 2010 21:50:39 +0000 (22:50 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 13 Mar 2010 21:50:39 +0000 (22:50 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plheap.php

index 39870b9..6dafc1a 100644 (file)
@@ -67,7 +67,7 @@ class PlHeap
 
     public function iterator()
     {
-        return PlIterator::fromArray($this->content);
+        return PlIteratorUtils::fromArray($this->content, 1, true);
     }
 }