Skip to content

Commit

Permalink
Merge branch 'MDL-74358_400' of https://github.com/stronk7/moodle int…
Browse files Browse the repository at this point in the history
…o MOODLE_400_STABLE
  • Loading branch information
junpataleta committed Jun 20, 2022
2 parents f02b730 + feb621d commit 4cd3426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion availability/classes/tree.php
Expand Up @@ -684,7 +684,7 @@ public function update_after_restore($restoreid, $courseid,
} 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;
}
}
Expand Down

0 comments on commit 4cd3426

Please sign in to comment.