From: vyshane Date: Mon, 29 Jan 2007 07:36:55 +0000 (+0000) Subject: Merged from 1.7. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ebe82e08ec8f46d5aef69dd1c4e4420c29e889b2;p=moodle.git Merged from 1.7. --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 411e71efee..0ab71d34fc 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'); }