]> git.mjollnir.org Git - moodle.git/commitdiff
improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_...
authorskodak <skodak>
Wed, 18 Oct 2006 20:21:28 +0000 (20:21 +0000)
committerskodak <skodak>
Wed, 18 Oct 2006 20:21:28 +0000 (20:21 +0000)
mod/glossary/comment.php

index ab6a0be206123e17407bd8b962c4d95c2915a92a..46059a70c0e19dca3ddde9ae54182dd4867d417f 100644 (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');