From 6573a3014b5c607a348768aaf97af579fe03d8ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20K=C3=BChn?= Date: Sun, 22 Dec 2013 15:19:46 +0100 Subject: [PATCH] Fixed possible issue in UserStorageHandler::update() --- .../lib/system/user/storage/UserStorageHandler.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } /** -- 2.20.1