Merge branch 'MDL-74299-master' of https://github.com/ericmerrill/moodle

This commit is contained in:
Andrew Nicols 2022-03-28 15:52:25 +08:00
commit d5e0a57333

View File

@ -356,7 +356,7 @@ function question_delete_question($questionid): void {
$questionstocheck = [$question->id];
if ($question->parent !== 0) {
if ($question->parent) {
$questionstocheck[] = $question->parent;
}