git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38361 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-02-23 14:57:10 +00:00
parent 113a544b03
commit ad7d593b0e

View file

@ -235,10 +235,12 @@ replaceFields(NSDictionary *fields, NSString *template)
{ {
NSUserDefaults *d; NSUserDefaults *d;
NSDictionary *c; NSDictionary *c;
BOOL ok;
d = [EcProc cmdDefaults]; d = [EcProc cmdDefaults];
c = [d dictionaryForKey: @"Alerter"]; c = [d dictionaryForKey: @"Alerter"];
return [self configureWithDefaults: c]; ok = [self configureWithDefaults: c];
return ok;
} }
- (BOOL) configureWithDefaults: (NSDictionary*)c - (BOOL) configureWithDefaults: (NSDictionary*)c
@ -475,7 +477,7 @@ replaceFields(NSDictionary *fields, NSString *template)
NSLog(@"ActiveTimes='%@' with missing HH:MM", obj); NSLog(@"ActiveTimes='%@' with missing HH:MM", obj);
return NO; return NO;
} }
if (1 != c) m = 0; if (1 == c) m = 0;
if (h < 0 || h > 23) if (h < 0 || h > 23)
{ {
NSLog(@"ActiveTimes='%@' with hour out of range", obj); NSLog(@"ActiveTimes='%@' with hour out of range", obj);
@ -494,7 +496,7 @@ replaceFields(NSDictionary *fields, NSString *template)
NSLog(@"ActiveTimes='%@' with missing HH:MM", obj); NSLog(@"ActiveTimes='%@' with missing HH:MM", obj);
return NO; return NO;
} }
if (1 != c) m = 0; if (1 == c) m = 0;
if (h < 0 || h > 24 || (24 == h && 0 != m)) if (h < 0 || h > 24 || (24 == h && 0 != m))
{ {
NSLog(@"ActiveTimes='%@' with hour out of range", obj); NSLog(@"ActiveTimes='%@' with hour out of range", obj);