From fc92e92b86bdac83e38db58f3c8515dfd3cab1ae Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Mon, 29 Apr 2024 18:46:37 -0600 Subject: [PATCH] Fixes a bug in SMF\Tasks\FetchCalendarSubscriptions Signed-off-by: Jon Stovell --- Sources/Tasks/FetchCalendarSubscriptions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Tasks/FetchCalendarSubscriptions.php b/Sources/Tasks/FetchCalendarSubscriptions.php index f046dffb9f..4dc080be37 100644 --- a/Sources/Tasks/FetchCalendarSubscriptions.php +++ b/Sources/Tasks/FetchCalendarSubscriptions.php @@ -44,11 +44,11 @@ public function execute(): bool if (!empty($ics_data)) { switch ($type) { - case 'holiday': + case Event::TYPE_HOLIDAY: Holiday::import($ics_data); break; - case 'event': + case Event::TYPE_EVENT: Event::import($ics_data); break; }