mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
qtype admin: operator precedence bug when deleting qtypes
This commit is contained in:
parent
a8be3f4287
commit
df244bbc3f
@ -98,7 +98,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete.
|
// 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.
|
// Check it is OK to delete this question type.
|
||||||
if ($delete == 'missingtype') {
|
if ($delete == 'missingtype') {
|
||||||
print_error('cannotdeletemissingqtype', 'admin', admin_url('qtypes.php'));
|
print_error('cannotdeletemissingqtype', 'admin', admin_url('qtypes.php'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user