From: Marcel Werk Date: Fri, 13 Jan 2012 18:48:04 +0000 (+0100) Subject: Fixed some storage handler issues X-Git-Tag: 2.0.0_Beta_1~1427 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15ab2868f1993bf97597ba6774e74192f9e20a2e;p=GitHub%2FWoltLab%2FWCF.git Fixed some storage handler issues --- 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(); } }