mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-46284-master-fix' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
7b2945b847
@ -62,11 +62,11 @@ if (empty($classname)) {
|
||||
$record->defaultexpiration = (int) $data->defaultexpiration;
|
||||
|
||||
if ($handler->can_change_validateaddress()) {
|
||||
$record->validateaddress = (int) $data->validateaddress;
|
||||
$record->validateaddress = !empty($data->validateaddress);
|
||||
}
|
||||
|
||||
if ($handler->can_change_enabled()) {
|
||||
$record->enabled = (int) $data->enabled;
|
||||
$record->enabled = !empty($data->enabled);
|
||||
}
|
||||
$DB->update_record('messageinbound_handlers', $record);
|
||||
redirect($PAGE->url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user