From df244bbc3fe2ce64988c18fcd1c335006941b87e Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 7 Apr 2009 05:17:04 +0000 Subject: [PATCH] qtype admin: operator precedence bug when deleting qtypes --- admin/qtypes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/qtypes.php b/admin/qtypes.php index cadab6eab5..614bc0236d 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')); -- 2.39.5