From: Matthias Schmidt Date: Sun, 27 Jul 2014 12:23:21 +0000 (+0200) Subject: Optimize previous commit X-Git-Tag: 2.1.0_Alpha_1~524 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=64b2ae2db36800d51b78fda9b81be6e5f304ff27;p=GitHub%2FWoltLab%2FWCF.git Optimize previous commit --- diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index 878adb17cb..d64d1afa4f 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -627,7 +627,7 @@ class UserNotificationHandler extends SingletonFactory { // reset number of notifications if (!empty($userIDs)) { - UserStorageHandler::getInstance()->reset($userIDs, 'userNotificationCount'); + UserStorageHandler::getInstance()->reset(array_unique($userIDs), 'userNotificationCount'); } // delete notifications