Permalink
Browse files

MDL-31664 fix invalid boolean to string comparison

  • Loading branch information...
mackensen authored and Sam Hemelryk committed Feb 17, 2012
1 parent c257dfc commit 2d20d5488a1632b86d0b4d036f35f53c45b2f865
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -4433,7 +4433,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 2d20d54

Please sign in to comment.