Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31664 fix invalid boolean to string comparison

  • Loading branch information...
commit 2d20d5488a1632b86d0b4d036f35f53c45b2f865 1 parent c257dfc
@mackensen mackensen authored samhemelryk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/forum/lib.php
View
2  mod/forum/lib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.