Don't add an empty category to a contact
This commit is contained in:
parent
7c0ef915c5
commit
7a9c8bf849
|
@ -485,7 +485,11 @@ static Class SOGoContactGCSEntryK = Nil;
|
||||||
o = [values objectAtIndex: i];
|
o = [values objectAtIndex: i];
|
||||||
if ([o isKindOfClass: [NSDictionary class]])
|
if ([o isKindOfClass: [NSDictionary class]])
|
||||||
{
|
{
|
||||||
[categories addObject: [o objectForKey: @"value"]];
|
o = [o objectForKey: @"value"];
|
||||||
|
if (o && [o isKindOfClass: [NSString class]] && [(NSString *) o length] > 0)
|
||||||
|
{
|
||||||
|
[categories addObject: o];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[card setCategories: categories];
|
[card setCategories: categories];
|
||||||
|
|
Loading…
Reference in a new issue