]> err.no Git - scalable-opengroupware.org/blobdiff - SoObjects/Contacts/SOGoContactGCSEntry.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1245 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / SoObjects / Contacts / SOGoContactGCSEntry.m
index 1dde518e92c4f07e5e70bfad685b8f923b802316..b56e5a92868368105e0535c6bf4f58c088610631 100644 (file)
@@ -40,8 +40,7 @@
 
 - (void) dealloc
 {
-  if (card)
-    [card release];
+  [card release];
   [super dealloc];
 }
 
 
 - (NGVCard *) vCard
 {
-  NSString *contentStr;
-
   if (!card)
     {
-      contentStr = [self contentAsString];
-      if ([contentStr hasPrefix:@"BEGIN:VCARD"])
-        card = [NGVCard parseSingleFromSource: contentStr];
+      if ([[content uppercaseString] hasPrefix: @"BEGIN:VCARD"])
+        card = [NGVCard parseSingleFromSource: content];
       else
         card = [NGVCard cardWithUid: [self nameInContainer]];
       [card retain];