From: Matthias Schmidt Date: Fri, 29 Jul 2016 19:34:04 +0000 (+0200) Subject: Add missing variable in anonymous function's use list X-Git-Tag: 3.0.0_Beta_1~894 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a78a118bcc2e72e1958c24f8dbddc1c66343e361;p=GitHub%2FWoltLab%2FWCF.git Add missing variable in anonymous function's use list --- diff --git a/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php index d4a1e2110e..722e208bc7 100644 --- a/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php @@ -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;