Permalink
Browse files

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

…to MOODLE_22_STABLE
  • Loading branch information...
2 parents 840dc3c + 3bb1696 commit cbb8087b306ae967a2604f212e2ba7ea84905966 Sam Hemelryk committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit cbb8087

Please sign in to comment.