From 15ab2868f1993bf97597ba6774e74192f9e20a2e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 13 Jan 2012 19:48:04 +0100 Subject: [PATCH] Fixed some storage handler issues --- .../system/user/storage/UserStorageHandler.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 6cce93e201..469f2bb2ec 100644 --- a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php @@ -121,6 +121,10 @@ class UserStorageHandler extends SingletonFactory { public function reset(array $userIDs, $field, $packageID = PACKAGE_ID) { foreach ($userIDs as $userID) { $this->resetFields[$userID][$packageID][] = $field; + + if (isset($this->cache[$userID][$field])) { + unset($this->cache[$userID][$field]); + } } } @@ -139,6 +143,12 @@ class UserStorageHandler extends SingletonFactory { $field, $packageID )); + + foreach ($this->cache as $userID => $fields) { + if (isset($fields[$field])) { + unset($this->cache[$userID][$field]); + } + } } /** @@ -186,5 +196,7 @@ class UserStorageHandler extends SingletonFactory { } } } + + $this->resetFields = $this->updateFields = array(); } } -- 2.20.1