From: Matthias Schmidt Date: Wed, 16 Aug 2017 15:46:56 +0000 (+0200) Subject: Fix contact form options' default values X-Git-Tag: 3.1.0_Alpha_1~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e563ec53457ad23466bf85074a9fa963bd107583;p=GitHub%2FWoltLab%2FWCF.git Fix contact form options' default values --- diff --git a/wcfsetup/install/files/lib/form/ContactForm.class.php b/wcfsetup/install/files/lib/form/ContactForm.class.php index 746cabf532..5e2c380f71 100644 --- a/wcfsetup/install/files/lib/form/ContactForm.class.php +++ b/wcfsetup/install/files/lib/form/ContactForm.class.php @@ -142,9 +142,13 @@ class ContactForm extends AbstractCaptchaForm { public function readData() { parent::readData(); - if (empty($_POST) && WCF::getUser()->userID) { - $this->email = WCF::getUser()->email; - $this->name = WCF::getUser()->username; + if (empty($_POST)) { + if (WCF::getUser()->userID) { + $this->email = WCF::getUser()->email; + $this->name = WCF::getUser()->username; + } + + $this->optionHandler->readData(); } }