Merge branch 'MDL-74358_400' of https://github.com/stronk7/moodle into MOODLE_400_STABLE

This commit is contained in:
Jun Pataleta
2022-06-20 14:36:05 +08:00
+1 -1
View File
@@ -684,7 +684,7 @@ class tree extends tree_node {
} else {
unset($this->children[$index]);
unset($this->showchildren[$index]);
$this->showchildren = array_values($this->showchildren);
$this->showchildren = !is_null($this->showchildren) ? array_values($this->showchildren) : null;
$changed = true;
}
}