mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Added export contacts (csv)
Interface optimizations
This commit is contained in:
parent
c248292f07
commit
7552ffe241
25 changed files with 526 additions and 290 deletions
|
|
@ -379,7 +379,7 @@ class PdoAddressBook
|
|||
}
|
||||
|
||||
$bVcf = 'vcf' === $sType;
|
||||
$bCsvHeader = false;
|
||||
$bCsvHeader = true;
|
||||
|
||||
$aDatabaseSyncData = $this->prepearDatabaseSyncData($iUserID);
|
||||
if (\is_array($aDatabaseSyncData) && 0 < \count($aDatabaseSyncData))
|
||||
|
|
@ -397,13 +397,8 @@ class PdoAddressBook
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!$bCsvHeader)
|
||||
{
|
||||
$bCsvHeader = true;
|
||||
echo $oContact->ToCsvHeader();
|
||||
}
|
||||
|
||||
echo $oContact->ToCsvLine();
|
||||
echo $oContact->ToCsv($bCsvHeader);
|
||||
$bCsvHeader = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue