Skip to content

Commit

Permalink
Merge branch 'MDL-74299-311' of https://github.com/ericmerrill/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_311_STABLE
  • Loading branch information
andrewnicols committed Mar 28, 2022
2 parents 0d05e76 + 7fc6677 commit f5b9056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/questionlib.php
Expand Up @@ -357,7 +357,7 @@ function question_delete_question($questionid) {

$questionstocheck = [$question->id];

if ($question->parent !== 0) {
if ($question->parent) {
$questionstocheck[] = $question->parent;
}

Expand Down

0 comments on commit f5b9056

Please sign in to comment.