Follow-up to #17336 to handle the case when no $to is passed.
authorErnesto Baschny <ernst@cron-it.de>
Wed, 26 Jan 2011 18:21:19 +0000 (18:21 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Wed, 26 Jan 2011 18:21:19 +0000 (18:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10339 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/mail/class.t3lib_mail_swiftmaileradapter.php

index 996e769..025b466 100644 (file)
@@ -81,9 +81,7 @@ class t3lib_mail_SwiftMailerAdapter implements t3lib_mail_MailerAdapter {
                $this->message->setSubject($subject);
                        // handle recipients
                $toAddresses = $this->parseAddresses($to);
-               if (count($toAddresses) > 0) {
-                       $this->message->setTo($toAddresses);
-               }
+               $this->message->setTo($toAddresses);
                        // handle additional headers
                $headers = t3lib_div::trimExplode(LF, $additionalHeaders, TRUE);
                $this->messageHeaders = $this->message->getHeaders();