From: Stéphane Jacob Date: Mon, 3 Jan 2011 21:59:13 +0000 (+0100) Subject: Fixes section display in vcard. X-Git-Tag: xorg/1.1.0~233 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=17717c87461244343ee261ee7d5f1f39c585922f;p=platal.git Fixes section display in vcard. Signed-off-by: Stéphane Jacob --- diff --git a/include/vcard.inc.php b/include/vcard.inc.php index bb025c6..18364ba 100644 --- a/include/vcard.inc.php +++ b/include/vcard.inc.php @@ -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