summaryrefslogtreecommitdiff
path: root/program/include/rcube_vcard.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-10 10:09:01 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-10 10:10:37 +0200
commit2c48c19387dad1a85f6735848ea9542be9d33413 (patch)
treed2375bca44344ba442be83a16b42641734f9690c /program/include/rcube_vcard.php
parenta2ec2ebff2a92f066aff06b1a80a52534fc063f4 (diff)
Fix storing X-ANNIVERSARY date in vCard format (#1488527)
Diffstat (limited to 'program/include/rcube_vcard.php')
-rw-r--r--program/include/rcube_vcard.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_vcard.php b/program/include/rcube_vcard.php
index e4a42f5cf..c07b4042a 100644
--- a/program/include/rcube_vcard.php
+++ b/program/include/rcube_vcard.php
@@ -315,8 +315,9 @@ class rcube_vcard
break;
case 'birthday':
- if ($val = rcube_strtotime($value))
- $this->raw['BDAY'][] = array(0 => date('Y-m-d', $val), 'value' => array('date'));
+ case 'anniversary':
+ if (($val = rcube_strtotime($value)) && ($fn = self::$fieldmap[$field]))
+ $this->raw[$fn][] = array(0 => date('Y-m-d', $val), 'value' => array('date'));
break;
case 'address':