From 6e1864cb1731bb870d775ac15eea6589a779ab2e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 10 Jun 2012 10:09:01 +0200 Subject: Fix storing X-ANNIVERSARY date in vCard format (#1488527) --- program/include/rcube_vcard.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'program/include/rcube_vcard.php') diff --git a/program/include/rcube_vcard.php b/program/include/rcube_vcard.php index b03ba9cfa..52545a0d9 100644 --- a/program/include/rcube_vcard.php +++ b/program/include/rcube_vcard.php @@ -312,8 +312,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': -- cgit v1.2.3