Fix storing X-ANNIVERSARY date in vCard format (#1488527)

pull/13/head
Aleksander Machniak 13 years ago
parent 235680a2f1
commit 6e1864cb17

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Fix storing X-ANNIVERSARY date in vCard format (#1488527)
- Update to Mail_Mime-1.8.5 (#1488521) - Update to Mail_Mime-1.8.5 (#1488521)
- Fix Shift + delete button does not permanently delete messages (#1488243) - Fix Shift + delete button does not permanently delete messages (#1488243)
- Add Content-Length for attachments where possible (#1485478) - Add Content-Length for attachments where possible (#1485478)

@ -312,8 +312,9 @@ class rcube_vcard
break; break;
case 'birthday': case 'birthday':
if ($val = rcube_strtotime($value)) case 'anniversary':
$this->raw['BDAY'][] = array(0 => date('Y-m-d', $val), 'value' => array('date')); if (($val = rcube_strtotime($value)) && ($fn = self::$fieldmap[$field]))
$this->raw[$fn][] = array(0 => date('Y-m-d', $val), 'value' => array('date'));
break; break;
case 'address': case 'address':

Loading…
Cancel
Save