From 64b2ae2db36800d51b78fda9b81be6e5f304ff27 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 27 Jul 2014 14:23:21 +0200 Subject: [PATCH] Optimize previous commit --- .../system/user/notification/UserNotificationHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1