diff --git a/mod/glossary/comment.php b/mod/glossary/comment.php index ab6a0be2061..46059a70c0e 100644 --- a/mod/glossary/comment.php +++ b/mod/glossary/comment.php @@ -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');