MDL-30607 message: removed an if condition that prevented you from clearing an overri...
authorAndrew Davis <andrew@moodle.com>
Tue, 6 Dec 2011 03:09:14 +0000 (11:09 +0800)
committerAndrew Davis <andrew@moodle.com>
Tue, 6 Dec 2011 03:09:14 +0000 (11:09 +0800)
message/output/email/message_output_email.php

index 5e56f1b..37efbe2 100644 (file)
@@ -83,7 +83,7 @@ class message_output_email extends message_output {
      * @param array $preferences preferences array
      */
     function process_form($form, &$preferences){
-        if (isset($form->email_email) && !empty($form->email_email)) {
+        if (isset($form->email_email)) {
             $preferences['message_processor_email_email'] = $form->email_email;
         }
     }