mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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 = '';
|
$sUid = $sFirstName = $sLastName = $sMiddleName = $sSuffix = $sPrefix = '';
|
||||||
$iPrevId = $iId;
|
$iPrevId = $iId;
|
||||||
}
|
}
|
||||||
if (!isset($aVCards[$iId])) {
|
if (isset($aVCards[$iId])) {
|
||||||
$aVCards[$iId] = new VCard;
|
|
||||||
}
|
|
||||||
$oVCard = $aVCards[$iId];
|
$oVCard = $aVCards[$iId];
|
||||||
|
} else {
|
||||||
|
$oVCard = new VCard;
|
||||||
|
// $oVCard = $oVCard->convert(VCard::VCARD40);
|
||||||
$oVCard->VERSION = '4.0';
|
$oVCard->VERSION = '4.0';
|
||||||
$oVCard->PRODID = 'SnappyMail-'.APP_VERSION;
|
$oVCard->PRODID = 'SnappyMail-'.APP_VERSION;
|
||||||
|
$aVCards[$iId] = $oVCard;
|
||||||
|
}
|
||||||
|
$oVCard = $aVCards[$iId];
|
||||||
$sPropValue = (string) $aItem['prop_value'];
|
$sPropValue = (string) $aItem['prop_value'];
|
||||||
$aTypes = array();
|
$aTypes = array();
|
||||||
if (!empty($aItem['prop_type_str'])) {
|
if (!empty($aItem['prop_type_str'])) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue