mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
fix sometimes not logged updated contact-data (binary jpegphoto breaks JSON encoding)
This commit is contained in:
parent
64e77f6f50
commit
cb7cc5a71d
@ -480,8 +480,9 @@ class Import
|
|||||||
++$errors;
|
++$errors;
|
||||||
continue;
|
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): ".
|
$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;
|
if (!$new) $new = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user