mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 00:38:04 +08:00
Set $oVCard->VERSION only once
This commit is contained in:
parent
99816083ef
commit
30577b677a
1 changed files with 8 additions and 4 deletions
|
@ -531,12 +531,16 @@ class PdoAddressBook
|
|||
$sUid = $sFirstName = $sLastName = $sMiddleName = $sSuffix = $sPrefix = '';
|
||||
$iPrevId = $iId;
|
||||
}
|
||||
if (!isset($aVCards[$iId])) {
|
||||
$aVCards[$iId] = new VCard;
|
||||
if (isset($aVCards[$iId])) {
|
||||
$oVCard = $aVCards[$iId];
|
||||
} else {
|
||||
$oVCard = new VCard;
|
||||
// $oVCard = $oVCard->convert(VCard::VCARD40);
|
||||
$oVCard->VERSION = '4.0';
|
||||
$oVCard->PRODID = 'SnappyMail-'.APP_VERSION;
|
||||
$aVCards[$iId] = $oVCard;
|
||||
}
|
||||
$oVCard = $aVCards[$iId];
|
||||
$oVCard->VERSION = '4.0';
|
||||
$oVCard->PRODID = 'SnappyMail-'.APP_VERSION;
|
||||
$sPropValue = (string) $aItem['prop_value'];
|
||||
$aTypes = array();
|
||||
if (!empty($aItem['prop_type_str'])) {
|
||||
|
|
Loading…
Reference in a new issue