From fb2730b372067dd7094c41bde5f22b59446a149c Mon Sep 17 00:00:00 2001 From: Paul Nicholls Date: Mon, 19 Jul 2010 13:05:01 +1200 Subject: [PATCH 1/1] MDL-23378 - navigation_node_collection::find() does not work --- lib/navigationlib.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 57548f4..0afb91c 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -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; } } -- 1.7.0.2.msysgit.0