Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-31664 fix invalid boolean to string comparison
  • Loading branch information
mackensen authored and Sam Hemelryk committed Mar 12, 2012
1 parent c257dfc commit 2d20d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 2d20d54

Please sign in to comment.