Merge branch 'MDL-31664-22' of https://github.com/mackensen/moodle into MOODLE_22_STABLE
This commit is contained in:
+1
-1
@@ -4415,7 +4415,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);
|
||||
|
||||
Reference in New Issue
Block a user