From: Matthias Schmidt Date: Thu, 28 Jul 2011 11:56:25 +0000 (+0200) Subject: Added missing registrationDate handling in UserEditor X-Git-Tag: 2.0.0_Beta_1~1930^2~8^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36b9fad2b47ac07df0e01a566d0bec6552729f73;p=GitHub%2FWoltLab%2FWCF.git Added missing registrationDate handling in UserEditor Without this special handling, the registrationDate is 0 for each user. --- diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 2a5a9e567d..c5fbc3a3aa 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -29,6 +29,9 @@ class UserEditor extends DatabaseObjectEditor { $parameters['salt'] = StringUtil::getRandomID(); $parameters['password'] = StringUtil::getDoubleSaltedHash($parameters['password'], $parameters['salt']); + // handle registration date + if (!isset($parameters['registrationDate'])) $parameters['registrationDate'] = TIME_NOW; + $user = parent::create($parameters); // create default values for user options