Validate custom subject for vacation auto-reply

This commit is contained in:
Francis Lachapelle committed 2016-12-01 11:21:59 -05:00
1 parent b4e9b7b60c
commit c9467e1ce3
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -345,7 +345,7 @@ static SoProduct *preferencesProduct = nil;
// Add the domain's default vacation subject if user has not specified a custom subject
vacationOptions = [defaults vacationOptions];
if (![vacationOptions objectForKey: @"customSubject"] && [domainDefaults vacationDefaultSubject])
if (![[vacationOptions objectForKey: @"customSubject"] length] && [domainDefaults vacationDefaultSubject])
{
if (vacationOptions)
vacation = [NSMutableDictionary dictionaryWithDictionary: vacationOptions];