diff options
author | alecpl <alec@alec.pl> | 2011-08-03 09:20:52 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-08-03 09:20:52 +0000 |
commit | 4d4a2fa32edffcca91822fe82363b71372048286 (patch) | |
tree | 3ab5cf1447e335dd094430b198cbb34832ec3f25 /program/steps/addressbook/export.inc | |
parent | 34854b63ee18d7b1a8b95d138460504e5d1c3f67 (diff) |
- Added possibility to extend rcube_vcard's fieldmap
- Skip empty values in vCard export
Diffstat (limited to 'program/steps/addressbook/export.inc')
-rw-r--r-- | program/steps/addressbook/export.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/addressbook/export.inc b/program/steps/addressbook/export.inc index 04b98a308..f890aca69 100644 --- a/program/steps/addressbook/export.inc +++ b/program/steps/addressbook/export.inc @@ -77,7 +77,9 @@ while ($result && ($row = $result->next())) { } // copy values into vcard object else { - $vcard = new rcube_vcard($row['vcard']); + $vcard = new rcube_vcard(); + $vcard->extend_fieldmap($CONTACTS->vcard_map); + $vcard->load($row['vcard']); $vcard->reset(); foreach ($row as $key => $values) { |