]> git.mjollnir.org Git - moodle.git/commitdiff
Small fix: removed one notice
authordefacer <defacer>
Thu, 17 Jun 2004 08:21:09 +0000 (08:21 +0000)
committerdefacer <defacer>
Thu, 17 Jun 2004 08:21:09 +0000 (08:21 +0000)
calendar/event.php

index 1a31d416f9337cf636f027071d6721921434375e..1b44b1da7631e4406d776fa5578e08cd70a4ad33 100644 (file)
 
     switch($_REQUEST['action']) {
         case 'delete':
-            if($_REQUEST['confirm'] == 1) {
+            if(!empty($_REQUEST['confirm']) && $_REQUEST['confirm'] == 1) {
                 // Kill it and redirect to day view
                 if(($event = get_record('event', 'id', $_REQUEST['id'])) !== false) {
                     /// Log the event delete.