Fixes section display in vcard.
authorStéphane Jacob <sj@m4x.org>
Mon, 3 Jan 2011 21:59:13 +0000 (22:59 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 3 Jan 2011 21:59:13 +0000 (22:59 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/vcard.inc.php

index bb025c6..18364ba 100644 (file)
@@ -159,8 +159,7 @@ class VCard extends PlVCard
             $entry->set('X-BINETS', join(', ', $bns));
         }
         if (!empty($pf->section)) {
-            $sections = DirEnum::getOptions(DirEnum::SECTIONS);
-            $entry->set('X-SECTION', $sections[$pf->section]);
+            $entry->set('X-SECTION', $pf->section);
         }
 
         // Photo