Navigation Menu

Skip to content

Commit

Permalink
MDL-31664 fix invalid boolean to string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Feb 17, 2012
1 parent ad52027 commit 3bb1696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Expand Up @@ -4414,7 +4414,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 3bb1696

Please sign in to comment.