]> git.mjollnir.org Git - moodle.git/commitdiff
qtype admin: operator precedence bug when deleting qtypes
authortjhunt <tjhunt>
Tue, 7 Apr 2009 05:17:04 +0000 (05:17 +0000)
committertjhunt <tjhunt>
Tue, 7 Apr 2009 05:17:04 +0000 (05:17 +0000)
admin/qtypes.php

index cadab6eab5084aa6e9a9d5ecdf392b14fc663721..614bc0236d8c78bf9736617e7839783b3bec90e3 100644 (file)
@@ -98,7 +98,7 @@
     }
 
     // Delete.
-    if ($delete = optional_param('delete', '', PARAM_SAFEDIR) && confirm_sesskey()) {
+    if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
         // Check it is OK to delete this question type.
         if ($delete == 'missingtype') {
             print_error('cannotdeletemissingqtype', 'admin', admin_url('qtypes.php'));