From 1bf613706d226a5bab8f9bf2ca58469539260f30 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 26 Nov 2007 20:37:54 +0000 Subject: [PATCH] Monotone-Parent: 70053c4380cee117bbb483d951dbc6bb08f67c88 Monotone-Revision: 27aea167b22f4039327617a920f320773435357a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-26T20:37:54 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoAppointmentFolder.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 506fe57e9..cafd2173b 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -874,12 +874,13 @@ static NSNumber *sharedYes = nil; *privacySqlString, *currentLogin; NGCalendarDateRange *r; - if (_folder == nil) { - [self errorWithFormat:@"(%s): missing folder for fetch!", + if (!_folder) + { + [self errorWithFormat:@"(%s): missing folder for fetch!", __PRETTY_FUNCTION__]; - return nil; - } - + return nil; + } + if (_startDate && _endDate) { r = [NGCalendarDateRange calendarDateRangeWithStartDate: _startDate