fix sometimes not logged updated contact-data (binary jpegphoto breaks JSON encoding)

This commit is contained in:
ralf 2024-01-29 18:03:33 +02:00
parent 64e77f6f50
commit cb7cc5a71d

View File

@ -480,8 +480,9 @@ class Import
++$errors;
continue;
}
$hide_binary = !empty($contact['jpegphoto']) ? ['jpegphoto' => bytes($contact['jpegphoto']).' bytes binary data'] : [];
$this->logger("Successful updated contact data of '$account[account_lid]' (#$account_id): ".
json_encode($diff, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), 'detail');
json_encode($hide_binary+$diff, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), 'detail');
if (!$new) $new = false;
}
else