From 0622093a374569308905d51d02056501c9803799 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 16 Nov 2021 15:45:48 -0500 Subject: [PATCH] test: assign array counts to variables in SOGoAppointmentObject --- SoObjects/Appointments/SOGoAppointmentObject.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 56d39ca21..917480657 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -2294,7 +2294,8 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent // [react on SENT-BY as someone else is acting for the organizer] // // - if ([[newEvent attendees] count] || [[oldEvent attendees] count]) + int newCount = [[newEvent attendees] count], oldCount = [[oldEvent attendees] count]; + if (newCount > 0 || oldCount > 0) { BOOL userIsOrganizer;