From: Alexander Ebert Date: Fri, 5 Aug 2011 13:13:21 +0000 (+0200) Subject: StorageHandler's reset() now supports multiple userIDs X-Git-Tag: 2.0.0_Beta_1~1909 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a1496f4aa5d16d1f718bace2061a72275fa8aeb;p=GitHub%2FWoltLab%2FWCF.git StorageHandler's reset() now supports multiple userIDs --- 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; + } } /**