qtype admin: operator precedence bug when deleting qtypes
This commit is contained in:
+1
-1
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user