Added missing default value
authorMarcel Werk <burntime@woltlab.com>
Sun, 1 Jan 2017 18:30:39 +0000 (19:30 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 1 Jan 2017 18:30:39 +0000 (19:30 +0100)
wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php

index 773a113986d24e2b6702ded22bfe19da31a9bffa..5c76cd14c0755efe52f59ed1f8ea513534cb4a8d 100644 (file)
@@ -76,6 +76,10 @@ class SendMailUserBulkProcessingAction extends AbstractUserBulkProcessingAction
         * @inheritDoc
         */
        public function getHTML() {
+               if (!count($_POST)) {
+                       $this->from = MAIL_FROM_ADDRESS;
+               }
+               
                return WCF::getTPL()->fetch('sendMailUserBulkProcessing', 'wcf', [
                        'enableHTML' => $this->enableHTML,
                        'from' => $this->from,