Skip to content

Commit eaf00c8

Browse files
committed
2.0.5
1 parent acdf3a1 commit eaf00c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/Module.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Module extends FormToolsModule
1818
protected $author = "Ben Keen";
1919
protected $authorEmail = "ben.keen@gmail.com";
2020
protected $authorLink = "https://formtools.org";
21-
protected $version = "2.0.4";
22-
protected $date = "2018-02-05";
21+
protected $version = "2.0.5";
22+
protected $date = "2018-03-18";
2323
protected $originLanguage = "en_us";
2424

2525
protected $nav = array(
@@ -310,9 +310,9 @@ public function sendEmail($email_components)
310310
}
311311

312312
$message = new Swift_Message();
313+
$message->setSubject($email_components["subject"]);
313314

314315
if (!empty($email_components["text_content"]) && !empty($email_components["html_content"])) {
315-
$message->setSubject($email_components["subject"]);
316316
$message->setBody($email_components["text_content"]);
317317
$message->addPart($email_components["html_content"], "text/html");
318318
} else if (!empty($email_components["text_content"])) {

0 commit comments

Comments
 (0)