Optimize previous commit
authorMatthias Schmidt <gravatronics@live.com>
Sun, 27 Jul 2014 12:23:21 +0000 (14:23 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 27 Jul 2014 12:23:21 +0000 (14:23 +0200)
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 878adb17cb09701b93997e8aede03fe0f981a482..d64d1afa4fabbaf38d88a6a76701747281d2b5de 100644 (file)
@@ -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