Add missing variable in anonymous function's use list
authorMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jul 2016 19:34:04 +0000 (21:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jul 2016 19:34:04 +0000 (21:34 +0200)
wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php

index d4a1e2110e065860c31f55099a08a9fcc02940d5..722e208bc7624fa06cc97d35db0c537f1682acc6 100644 (file)
@@ -149,7 +149,7 @@ class DailyMailNotificationCronjob extends AbstractCronjob {
                        if ($user->activationCode) continue;
                        if ($user->banned) continue;
                        
-                       $notifications = array_map(function ($notificationID) use ($notificationObjects, $eventObjects, $user, $objectTypes, $authors, $authorToNotification) {
+                       $notifications = array_map(function ($notificationID) use ($notificationObjects, $eventObjects, $user, $objectTypes, $authors, $authorToNotification, $unknownAuthor) {
                                $notification = $notificationObjects[$notificationID];
                                
                                $className = $eventObjects[$notification->eventID]->className;