mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Solve PHP Notice: Undefined index: ENCODING
This commit is contained in:
parent
d0be08ddd3
commit
56950b4b70
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class Contact implements \JsonSerializable
|
|||
*/
|
||||
public function setVCard(VCard $oVCard) : void
|
||||
{
|
||||
if ($oVCard->PHOTO && $oVCard->PHOTO->parameters['ENCODING']) {
|
||||
if ($oVCard->PHOTO && !empty($oVCard->PHOTO->parameters['ENCODING'])) {
|
||||
$oVCard->VERSION = '3.0';
|
||||
}
|
||||
if (VCard::VCARD40 != $oVCard->getDocumentType()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue