MDL-74299 question: Don't use a strict comparison for DB objects
This commit is contained in:
+1
-1
@@ -357,7 +357,7 @@ function question_delete_question($questionid) {
|
||||
|
||||
$questionstocheck = [$question->id];
|
||||
|
||||
if ($question->parent !== 0) {
|
||||
if ($question->parent) {
|
||||
$questionstocheck[] = $question->parent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user