From 7e57ed3b84fcaa8bbdfff8540a52b76083a971bc Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Fri, 9 May 2014 11:53:46 +0200 Subject: [PATCH] Honor option "log_ip_address" --- wcfsetup/install/files/lib/form/RegisterForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 81f9c98dd1..6286af55ea 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -406,7 +406,7 @@ class RegisterForm extends UserAddForm { } $this->additionalFields['languageID'] = $this->languageID; - $this->additionalFields['registrationIpAddress'] = WCF::getSession()->ipAddress; + if (LOG_IP_ADDRESS) $this->additionalFields['registrationIpAddress'] = WCF::getSession()->ipAddress; // generate activation code $addDefaultGroups = true; -- 2.20.1