Sanitize value of SOGoMailAutoSave

This commit is contained in:
Francis Lachapelle committed 2019-09-26 11:17:15 -04:00
1 parent 2fbe721c60
commit eafbdd3884
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -543,7 +543,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
{
NSString *s;
if ([newValue intValue] == 0)
if ([newValue intValue] <= 0)
s = @"5";
else
s = newValue;
@@ -557,7 +557,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
s = [self stringForKey: @"SOGoMailAutoSave"];
if ([s intValue] == 0)
if ([s intValue] <= 0)
s = @"5";
return s;