Fix `$timesTriggered` of test notifications
authorMatthias Schmidt <gravatronics@live.com>
Fri, 25 Aug 2017 09:36:07 +0000 (11:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 25 Aug 2017 09:36:07 +0000 (11:36 +0200)
See #2359

wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php

index 2d2e3abac17636fdf1be5b226efb48de600e07fb..1a2e8bf8af8f228c027dcf34274f548226be4eed 100644 (file)
@@ -254,7 +254,7 @@ class TestableUserNotificationEventHandler extends SingletonFactory {
                                                ]));
                                                
                                                $event->setObject(
-                                                       $this->getUserNotification($firstAuthor, $authorCount, $guestCount, $additionalData),
+                                                       $this->getUserNotification($firstAuthor, $authorCount + $guestCount, $guestCount, $additionalData),
                                                        $object,
                                                        $authorCount ? $firstAuthor : $unknownAuthor,
                                                        $additionalData