MDL-39801 navigation_node::remove does not allow to insert nodes afterwards

This commit is contained in:
Marina Glancy
2013-06-04 02:03:31 +02:00
committed by Eloy Lafuente (stronk7)
parent d60d1d0db8
commit fc97a877fd
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -901,6 +901,7 @@ class navigation_node_collection implements IteratorAggregate {
foreach ($this->collection as $colkey => $node) {
if ($node->key === $key && $node->type == $type) {
unset($this->collection[$colkey]);
$this->collection = array_values($this->collection);
break;
}
}