improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_17_STABLE

This commit is contained in:
skodak 2006-10-18 20:21:28 +00:00
parent 4f93f5ba08
commit efa0eb1dcd

View File

@ -80,7 +80,7 @@
if (!$glossary->allowcomments && !has_capability('mod/glossary:managecomments', $context)) {
error('You can\'t delete comments in this glossary!');
}
if ( $confirm ) {
if ( data_submitted() and $confirm ) {
delete_records('glossary_comments','id', $cid);
print_simple_box_start('center','40%', '#FFBBBB');