Skip to content
Browse files

Merge branch 'MDL-25816_jabber_preference' of git://github.com/andyjd…

…avis/moodle
  • Loading branch information...
2 parents ec58c9d + 6c0f13a commit d6211dce9a4bb5aa1c8148cf19b6c949ba9fe4ba @stronk7 stronk7 committed Feb 22, 2011
View
4 message/output/email/message_output_email.php
@@ -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;
+ }
}
/**
View
4 message/output/jabber/message_output_jabber.php
@@ -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 d6211dc

Please sign in to comment.
Something went wrong with that request. Please try again.