(fix) handle multi-value org units

pull/207/head
Ludovic Marcotte 2016-05-11 10:16:34 -04:00
parent a30d620502
commit b5b9d596f0
1 changed files with 3 additions and 1 deletions

View File

@ -293,7 +293,9 @@ convention:
atIndex: 6 forKey: @""];
ou = [ldifRecord objectForKey: @"ou"];
if (ou)
if ([ou isKindOfClass: [NSArray class]])
units = [NSArray arrayWithArray: ou];
else if (ou)
units = [NSArray arrayWithObject: ou];
else
units = nil;