mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
[fix] JS syntax error on login page
This commit is contained in:
1 parent
eaeae77be4
commit
8d66f62cad
1 file changed
+10
-1
@@ -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