From 075203a5c68015669afa229b252aa25f39ea36c2 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Wed, 16 Aug 2023 12:33:22 +0200 Subject: [PATCH] fix --- SoObjects/Appointments/iCalCalendar+SOGo.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SoObjects/Appointments/iCalCalendar+SOGo.m b/SoObjects/Appointments/iCalCalendar+SOGo.m index a3f4a8070..1b0d493e6 100644 --- a/SoObjects/Appointments/iCalCalendar+SOGo.m +++ b/SoObjects/Appointments/iCalCalendar+SOGo.m @@ -53,12 +53,11 @@ if ([component isRecurrent] || [component recurrenceId]) { // Skip the master event if required - recId = [component recurrenceId]; - count = (recID ? 0 : 1); + count = ([component recurrenceId] ? 0 : 1); while (!occurrence && count < max) { component = [components objectAtIndex: count]; - recSeconds = [recId timeIntervalSince1970]; + recSeconds = [[component recurrenceId] timeIntervalSince1970]; if (recSeconds == seconds) occurrence = component; else