Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-31664-22' of https://github.com/mackensen/moodle in…

…to MOODLE_22_STABLE
  • Loading branch information...
commit cbb8087b306ae967a2604f212e2ba7ea84905966 2 parents 840dc3c + 3bb1696
Sam Hemelryk samhemelryk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/forum/lib.php
2  mod/forum/lib.php
View
@@ -4415,7 +4415,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);
Please sign in to comment.
Something went wrong with that request. Please try again.