do NOT search for empty UUID

This commit is contained in:
ralf 2024-08-20 10:18:46 +02:00
parent 2469b8cc60
commit b6e00c9ae0

View File

@ -325,7 +325,7 @@ class Import
$hide_binary = ['jpegphoto' => $contact['jpegphoto'] ? bytes($contact['jpegphoto']).' bytes binary data' : null];
$this->logger(++$num.'. User: '.json_encode($hide_binary + $contact + $account, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), 'debug');
// check if account exists in sql
if (!($account_id = $this->accounts_sql->name2id($account['account_uuid'], 'account_uuid')) &&
if (!($account_id = !empty($account['account_uuid']) ? $this->accounts_sql->name2id($account['account_uuid'], 'account_uuid') : false) &&
!($account_id = $this->accounts_sql->name2id($account['account_lid'])))
{
$sql_account = $account;