From e2377af7a547e0086d17cbaeed3bbc9cbbaceae0 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 4 Sep 2013 14:05:58 +0200 Subject: [PATCH] Improved import performance --- wcfsetup/install/files/lib/data/user/UserEditor.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 34a4885ab9..c828ca11c9 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -37,7 +37,9 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { */ public static function create(array $parameters = array()) { // create salt and password hash - $parameters['password'] = PasswordUtil::getDoubleSaltedHash($parameters['password']); + if ($parameters['password'] !== '') { + $parameters['password'] = PasswordUtil::getDoubleSaltedHash($parameters['password']); + } // create accessToken for AbstractAuthedPage $parameters['accessToken'] = StringUtil::getRandomID(); -- 2.20.1