diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 411e71efee7..0ab71d34fce 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4407,7 +4407,7 @@ function forum_delete_userdata($data, $showfeedback=true) { } } if (!empty($data->reset_forum_single)) { - $select = "$sql AND f.type = 'single' and fp.parent > 0 )"; + $select = "$sql AND f.type = 'single' ) AND parent <> 0"; if (execute_sql($select, false) and $showfeedback) { notify($strreset.': '.get_string('singleforum','forum'), 'notifysuccess'); }