mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 22:55:39 +02:00
message MDL-25816 added safety checks in form processing
This commit is contained in:
parent
d20b9662fc
commit
6c0f13a5bc
@ -85,8 +85,10 @@ class message_output_email extends message_output {
|
||||
* @param array $preferences preferences array
|
||||
*/
|
||||
function process_form($form, &$preferences){
|
||||
if (isset($form->email_email)) {
|
||||
$preferences['message_processor_email_email'] = $form->email_email;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the config data from database to put on the form (initial load)
|
||||
|
@ -106,8 +106,10 @@ class message_output_jabber extends message_output {
|
||||
* @param array $preferences preferences array
|
||||
*/
|
||||
function process_form($form, &$preferences){
|
||||
if (isset($form->jabber_jabberid)) {
|
||||
$preferences['message_processor_jabber_jabberid'] = $form->jabber_jabberid;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the config data from database to put on the form (initial load)
|
||||
|
Loading…
x
Reference in New Issue
Block a user