qtype admin: operator precedence bug when deleting qtypes

This commit is contained in:
tjhunt 2009-04-07 05:17:04 +00:00
parent a8be3f4287
commit df244bbc3f

View 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'));