[fix] JS syntax error on login page

This commit is contained in:
Francis Lachapelle
2015-04-01 08:51:48 -04:00
parent eaeae77be4
commit 8d66f62cad
+10 -1
View File
@@ -443,7 +443,16 @@ static SoProduct *commonProduct = nil;
- (NSString *) currentDayDescription
{
return [[[context activeUser] currentDay] jsonRepresentation];
NSDictionary *currentDay;
SOGoUser *user;
user = [context activeUser];
if (user)
currentDay = [user currentDay];
else
currentDay = [NSDictionary dictionary];
return [currentDay jsonRepresentation];
}
- (NSString *) dateStringForDate: (NSCalendarDate *) _date