From: Magnus Kühn Date: Sun, 22 Dec 2013 14:19:46 +0000 (+0100) Subject: Fixed possible issue in UserStorageHandler::update() X-Git-Tag: 2.1.0_Alpha_1~333^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6573a3014b5c607a348768aaf97af579fe03d8ca;p=GitHub%2FWoltLab%2FWCF.git Fixed possible issue in UserStorageHandler::update() --- diff --git a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php index 6b5f2de5c7..9f0c64b521 100644 --- a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php @@ -97,11 +97,9 @@ class UserStorageHandler extends SingletonFactory { $this->updateFields[$userID][$field] = $fieldValue; // update data cache for given user - if (!isset($this->cache[$userID])) { - $this->cache[$userID] = array(); + if (isset($this->cache[$userID])) { + $this->cache[$userID][$field] = $fieldValue; } - - $this->cache[$userID][$field] = $fieldValue; } /**