Permalink
Browse files

MDL-31664 fix invalid boolean to string comparison

  • Loading branch information...
1 parent 5c3f517 commit 79795cd6315912cc2696b975ba80899a44dfdc46 @mackensen mackensen committed with Sam Hemelryk Feb 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -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);

0 comments on commit 79795cd

Please sign in to comment.