From 4d4b3b12db85caf1e2c4535bbb96a8925063dec0 Mon Sep 17 00:00:00 2001 From: Marcel Werk <burntime@woltlab.com> Date: Sun, 1 Jan 2017 19:30:39 +0100 Subject: [PATCH] Added missing default value --- .../user/SendMailUserBulkProcessingAction.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php index 773a113986..5c76cd14c0 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php @@ -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, -- 2.20.1