Merge branch 'MDL-30607_override_email' of git://github.com/andyjdavis/moodle
authorAparup Banerjee <aparup@moodle.com>
Thu, 8 Dec 2011 05:38:54 +0000 (13:38 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 8 Dec 2011 05:38:54 +0000 (13:38 +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;
         }
     }