From 40ad488405b003437ee2823cf268608b6549746a Mon Sep 17 00:00:00 2001 From: Peter Dias Date: Thu, 14 Apr 2022 12:25:15 +0800 Subject: [PATCH] MDL-74407 navigation: Perform a strict array_search for node keys Perform strict array_search due to conflicting results in versions children as $other) { - if (array_search($other->key, $expectedcourseadmin) === false) { + if (array_search($other->key, $expectedcourseadmin, true) === false) { $othernode = $this->get_first_action_for_node($other); $recursivenode = $othernode && !$rootnode->get($othernode->key) ? $othernode : $other; // Get the first node and check whether it's been added already.