From 55fa21af2613cf6079038c77944a0374ec5e19a1 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 5 Sep 2012 21:57:17 +1000 Subject: [PATCH] SF Bug #3513210 - Export to VCARD only exports the last entry in the list --- lib/export_functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/export_functions.php b/lib/export_functions.php index e8c2f76..d98df2c 100644 --- a/lib/export_functions.php +++ b/lib/export_functions.php @@ -578,6 +578,7 @@ class ExportVCARD extends Export { */ function export() { $server = $this->getServer(); + $output = ''; # Sift through the entries. foreach ($this->results as $base => $results) { @@ -591,10 +592,11 @@ class ExportVCARD extends Export { $addr .= $dndetails[$attr]; unset($dndetails[$attr]); } + $addr .= ';'; } - $output = sprintf('BEGIN:VCARD%s',$this->br); + $output .= sprintf('BEGIN:VCARD%s',$this->br); # Loop for the attributes foreach ($dndetails as $key => $attr) {