Commit edede571 authored by ilya's avatar ilya
Browse files

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

parents d54fa7ab 40ad4884
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment