Honor option "log_ip_address"
authorSascha Greuel <SoftCreatR@users.noreply.github.com>
Fri, 9 May 2014 09:53:46 +0000 (11:53 +0200)
committerSascha Greuel <SoftCreatR@users.noreply.github.com>
Fri, 9 May 2014 09:53:46 +0000 (11:53 +0200)
wcfsetup/install/files/lib/form/RegisterForm.class.php

index 81f9c98dd1f63475be04aebc4366946175ec3d31..6286af55ead4a65d6fb69f28f70234ed0fb05187 100644 (file)
@@ -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;