Introduce new flag variable for email confirmation
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / user / notification / UserNotificationHandler.class.php
index 4672efdfa0dccaf4ff79a5c801c4edd9a3e3e8ee..e57b4d181ff3aa69d2816f90cbc196af36e31626 100644 (file)
@@ -672,7 +672,7 @@ class UserNotificationHandler extends SingletonFactory {
         */
        public function sendInstantMailNotification(UserNotification $notification, User $user, IUserNotificationEvent $event) {
                // no notifications for disabled or banned users
-               if ($user->activationCode) return;
+               if (!$user->isEmailConfirmed()) return;
                if ($user->banned) return;
                
                // recipient's language