From 9a1496f4aa5d16d1f718bace2061a72275fa8aeb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 5 Aug 2011 15:13:21 +0200 Subject: [PATCH] StorageHandler's reset() now supports multiple userIDs --- .../files/lib/system/storage/StorageHandler.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/storage/StorageHandler.class.php b/wcfsetup/install/files/lib/system/storage/StorageHandler.class.php index 02f90ef40a..902e281885 100644 --- a/wcfsetup/install/files/lib/system/storage/StorageHandler.class.php +++ b/wcfsetup/install/files/lib/system/storage/StorageHandler.class.php @@ -125,12 +125,14 @@ class StorageHandler extends SingletonFactory { /** * Removes a data record from database. * - * @param integer $userID + * @param array $userID * @param string $field * @param integer $packageID */ - public function reset($userID, $field, $packageID = PACKAGE_ID) { - $this->resetFields[$userID][$packageID][] = $field; + public function reset(array $userIDs, $field, $packageID = PACKAGE_ID) { + foreach ($userIDs as $userID) { + $this->resetFields[$userID][$packageID][] = $field; + } } /** -- 2.20.1