diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index e49fe4af4..e71ec34e5 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -990,12 +990,12 @@ { NSString *calendarName, *mailDate, *mailText, *fullSenderEmail, *senderEmail, *fullRecipientEmail, *recipientEmail; NSDictionary *senderIdentity, *recipientIdentity; - SOGoAptMailReceipt *page; - NGMutableHashMap *headerMap; - NGMimeMessage *msg; - SOGoUser *currentUser; - SOGoDomainDefaults *dd; id authenticator; + SOGoUser *currentUser, *ownerUser; + NGMutableHashMap *headerMap; + SOGoAptMailReceipt *page; + SOGoDomainDefaults *dd; + NGMimeMessage *msg; calendarName = [[self container] displayName]; @@ -1028,8 +1028,8 @@ [headerMap setObject: fullSenderEmail forKey: @"from"]; // Recipient is fixed, which is the calendar owner - currentUser = [SOGoUser userWithLogin: self->owner]; - recipientIdentity = [currentUser primaryIdentity]; + ownerUser = [SOGoUser userWithLogin: self->owner]; + recipientIdentity = [ownerUser primaryIdentity]; recipientEmail = [recipientIdentity objectForKey: @"email"]; fullRecipientEmail = [recipientIdentity keysWithFormat: @"%{fullName} <%{email}>"];