If the organizer's name is non-existent, use the email address

This commit is contained in:
Ludovic Marcotte
2013-07-04 13:11:02 -04:00
parent f42d52743d
commit e687dbf155

View File

@@ -872,10 +872,16 @@ iRANGE(2);
- (NSString *) organizerName
{
NSDictionary *profile;
NSString *s;
profile = [[[self organizerProfile] allValues] lastObject];
s = [profile objectForKey: @"name"];
return [profile objectForKey: @"name"];
if ([s length] == 0)
s = [profile objectForKey: @"email"];
return s;
}
- (NSString *) jsonOrganizer