Merge branch 'MDL-74407-master' of https://github.com/peterRd/moodle

This commit is contained in:
Ilya Tregubov
2022-04-15 07:24:08 +06:00
+1 -1
View File
@@ -417,7 +417,7 @@ class secondary extends view {
if ($courseadminnode) {
foreach ($courseadminnode->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.