mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-16 00:21:01 +00:00
fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38361 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
113a544b03
commit
ad7d593b0e
1 changed files with 5 additions and 3 deletions
|
@ -235,10 +235,12 @@ replaceFields(NSDictionary *fields, NSString *template)
|
|||
{
|
||||
NSUserDefaults *d;
|
||||
NSDictionary *c;
|
||||
BOOL ok;
|
||||
|
||||
d = [EcProc cmdDefaults];
|
||||
c = [d dictionaryForKey: @"Alerter"];
|
||||
return [self configureWithDefaults: c];
|
||||
ok = [self configureWithDefaults: c];
|
||||
return ok;
|
||||
}
|
||||
|
||||
- (BOOL) configureWithDefaults: (NSDictionary*)c
|
||||
|
@ -475,7 +477,7 @@ replaceFields(NSDictionary *fields, NSString *template)
|
|||
NSLog(@"ActiveTimes='%@' with missing HH:MM", obj);
|
||||
return NO;
|
||||
}
|
||||
if (1 != c) m = 0;
|
||||
if (1 == c) m = 0;
|
||||
if (h < 0 || h > 23)
|
||||
{
|
||||
NSLog(@"ActiveTimes='%@' with hour out of range", obj);
|
||||
|
@ -494,7 +496,7 @@ replaceFields(NSDictionary *fields, NSString *template)
|
|||
NSLog(@"ActiveTimes='%@' with missing HH:MM", obj);
|
||||
return NO;
|
||||
}
|
||||
if (1 != c) m = 0;
|
||||
if (1 == c) m = 0;
|
||||
if (h < 0 || h > 24 || (24 == h && 0 != m))
|
||||
{
|
||||
NSLog(@"ActiveTimes='%@' with hour out of range", obj);
|
||||
|
|
Loading…
Reference in a new issue