navigation MDL-23378 Added additional = sign to find method of nav node collection

This commit is contained in:
Sam Hemelryk 2010-07-23 02:59:13 +00:00
parent d1021c79ff
commit d9219fc988

View File

@ -710,7 +710,7 @@ class navigation_node_collection implements IteratorAggregate {
$nodes = $this->getIterator();
// Search immediate children first
foreach ($nodes as &$node) {
if ($node->key == $key && ($type == null || $type === $node->type)) {
if ($node->key === $key && ($type === null || $type === $node->type)) {
return $node;
}
}