diff --git a/admin/qtypes.php b/admin/qtypes.php index cadab6eab50..614bc0236d8 100644 --- a/admin/qtypes.php +++ b/admin/qtypes.php @@ -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'));