mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
[fix] JS syntax error on login page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user