mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
navigation MDL-23378 Added additional = sign to find method of nav node collection
This commit is contained in:
parent
d1021c79ff
commit
d9219fc988
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user