diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index fa0f85ad8..0b4a5f9dd 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -514,7 +514,7 @@ static Class sogoAppointmentFolderKlass = Nil; /* prepare mandatory fields */ - sql = [[NSString stringWithFormat: @"%@ %@ %@ %@", + sql = [[NSString stringWithFormat: @"%@%@%@%@", dateSqlString, titleSqlString, componentSqlString, filterSqlString] substringFromIndex: 4]; @@ -1626,9 +1626,7 @@ static Class sogoAppointmentFolderKlass = Nil; { record = [records objectAtIndex: count]; recordURL = [cnames objectForKey: [record objectForKey: @"c_name"]]; - - if (recordURL) - [components setObject: record forKey: recordURL]; + [components setObject: record forKey: recordURL]; } return components; diff --git a/SoObjects/SOGo/SOGoCache.m b/SoObjects/SOGo/SOGoCache.m index 3ca3e76b9..33f076967 100644 --- a/SoObjects/SOGo/SOGoCache.m +++ b/SoObjects/SOGo/SOGoCache.m @@ -113,6 +113,7 @@ static SOGoCache *sharedCache = nil; - (void) dealloc { +#if 0 [[NSDistributedNotificationCenter defaultCenter] removeObserver: self name: @"SOGoUserDefaultsHaveChanged" @@ -122,6 +123,7 @@ static SOGoCache *sharedCache = nil; removeObserver: self name: @"SOGoUserSettingsHaveChanged" object: nil]; +#endif [cache release]; [users release];