From: tjhunt Date: Tue, 7 Apr 2009 05:17:04 +0000 (+0000) Subject: qtype admin: operator precedence bug when deleting qtypes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=df244bbc3fe2ce64988c18fcd1c335006941b87e;p=moodle.git qtype admin: operator precedence bug when deleting qtypes --- 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'));