MDL-31664 fix invalid boolean to string comparison
This commit is contained in:
committed by
Sam Hemelryk
parent
5c3f517142
commit
79795cd631
+1
-1
@@ -4412,7 +4412,7 @@ function forum_delete_post($post, $children, $course, $cm, $forum, $skipcompleti
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
|
||||
if ($children != 'ignore' && ($childposts = $DB->get_records('forum_posts', array('parent'=>$post->id)))) {
|
||||
if ($children !== 'ignore' && ($childposts = $DB->get_records('forum_posts', array('parent'=>$post->id)))) {
|
||||
if ($children) {
|
||||
foreach ($childposts as $childpost) {
|
||||
forum_delete_post($childpost, true, $course, $cm, $forum, $skipcompletion);
|
||||
|
||||
Reference in New Issue
Block a user