mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
qtype admin: operator precedence bug when deleting qtypes
This commit is contained in:
parent
a8be3f4287
commit
df244bbc3f
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user