Removed duplicated condition
authorMarcel Werk <burntime@woltlab.com>
Thu, 23 Sep 2021 13:55:18 +0000 (15:55 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 23 Sep 2021 13:55:18 +0000 (15:55 +0200)
wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php

index b54f837fba323502f73b094892f77ff88509a66b..b14c426f74a6467b84bf40ba81d733647fef0f35 100644 (file)
@@ -223,15 +223,13 @@ class UserObjectWatchHandler extends SingletonFactory
         }
 
         if (!empty($recipientIDs)) {
-            if (!empty($recipientIDs)) {
-                UserNotificationHandler::getInstance()->fireEvent(
-                    $notificationEventName,
-                    $notificationObjectType,
-                    $notificationObject,
-                    $recipientIDs,
-                    $additionalData
-                );
-            }
+            UserNotificationHandler::getInstance()->fireEvent(
+                $notificationEventName,
+                $notificationObjectType,
+                $notificationObject,
+                $recipientIDs,
+                $additionalData
+            );
         }
     }
 }