Permalink
Browse files

message MDL-25816 added safety checks in form processing

  • Loading branch information...
1 parent d20b966 commit 6c0f13a5bcb94de5d921a64c25e1c8c7b43aef79 @andyjdavis andyjdavis committed Feb 22, 2011
@@ -85,7 +85,9 @@ function config_form($preferences){
* @param array $preferences preferences array
*/
function process_form($form, &$preferences){
- $preferences['message_processor_email_email'] = $form->email_email;
+ if (isset($form->email_email)) {
+ $preferences['message_processor_email_email'] = $form->email_email;
+ }
}
/**
@@ -106,7 +106,9 @@ function config_form($preferences){
* @param array $preferences preferences array
*/
function process_form($form, &$preferences){
- $preferences['message_processor_jabber_jabberid'] = $form->jabber_jabberid;
+ if (isset($form->jabber_jabberid)) {
+ $preferences['message_processor_jabber_jabberid'] = $form->jabber_jabberid;
+ }
}
/**

0 comments on commit 6c0f13a

Please sign in to comment.