From f5611606f20bdb4c35da90d5aa51cab25ef54e03 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 20 Oct 2006 21:13:50 +0000 Subject: [PATCH] Monotone-Parent: 6f4aca34d0b59d7ae94fc6372510067926e9d0b4 Monotone-Revision: 66637dd9fbad7528514f958ca2e14068c4dc2386 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-20T21:13:50 Monotone-Branch: ca.inverse.sogo --- SoObjects/Contacts/NGLdapEntry+Contact.m | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/SoObjects/Contacts/NGLdapEntry+Contact.m b/SoObjects/Contacts/NGLdapEntry+Contact.m index 60aabf0cc..53e9fe42c 100644 --- a/SoObjects/Contacts/NGLdapEntry+Contact.m +++ b/SoObjects/Contacts/NGLdapEntry+Contact.m @@ -32,8 +32,8 @@ - (NSString *) singleAttributeWithName: (NSString *) key { - return [[self attributeWithName: key] - stringValueAtIndex: 0]; + return [[self attributeWithName: key] + stringValueAtIndex: 0]; } - (NSDictionary *) asDictionaryWithAttributeNames: (NSArray *) attributeNames @@ -52,15 +52,13 @@ attribute = [attrEnum nextObject]; while (attribute) { - [valuesDict setObject: [[self attributeWithName: attribute] - stringValueAtIndex: 0] + [valuesDict setObject: [self singleAttributeWithName: attribute] forKey: attribute]; attribute = [attrEnum nextObject]; } if (cName) { - value = [[self attributeWithName: cName] - stringValueAtIndex: 0]; + value = [self singleAttributeWithName: cName]; if (!value) value = @""; NSLog (@"value for '%@' = '%@'", cName, value); @@ -69,8 +67,7 @@ } if (uid) { - value = [[self attributeWithName: uid] - stringValueAtIndex: 0]; + value = [self singleAttributeWithName: uid]; if (!value) value = @""; NSLog (@"value for '%@' = '%@'", uid, value);