Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

message MDL-25816 added safety checks in form processing

  • Loading branch information...
commit 6c0f13a5bcb94de5d921a64c25e1c8c7b43aef79 1 parent d20b966
Andrew Davis authored February 22, 2011
4  message/output/email/message_output_email.php
@@ -85,7 +85,9 @@ function config_form($preferences){
85 85
      * @param array $preferences preferences array
86 86
      */
87 87
     function process_form($form, &$preferences){
88  
-        $preferences['message_processor_email_email'] = $form->email_email;
  88
+        if (isset($form->email_email)) {
  89
+            $preferences['message_processor_email_email'] = $form->email_email;
  90
+        }
89 91
     }
90 92
 
91 93
     /**
4  message/output/jabber/message_output_jabber.php
@@ -106,7 +106,9 @@ function config_form($preferences){
106 106
      * @param array $preferences preferences array
107 107
      */
108 108
     function process_form($form, &$preferences){
109  
-        $preferences['message_processor_jabber_jabberid'] = $form->jabber_jabberid;
  109
+        if (isset($form->jabber_jabberid)) {
  110
+            $preferences['message_processor_jabber_jabberid'] = $form->jabber_jabberid;
  111
+        }
110 112
     }
111 113
 
112 114
     /**

0 notes on commit 6c0f13a

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