From: skodak Date: Wed, 18 Oct 2006 20:21:28 +0000 (+0000) Subject: improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=efa0eb1dcdd510bbcf6b36af5ebc3cafa2b03375;p=moodle.git improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_17_STABLE --- 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');