From efa0eb1dcdd510bbcf6b36af5ebc3cafa2b03375 Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 18 Oct 2006 20:21:28 +0000 Subject: [PATCH] improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_17_STABLE --- mod/glossary/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/glossary/comment.php b/mod/glossary/comment.php index ab6a0be206..46059a70c0 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'); -- 2.39.5