From b6e00c9ae0519ec81d4f57ee9b94248b5ac5f218 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 20 Aug 2024 10:18:46 +0200 Subject: [PATCH] do NOT search for empty UUID --- api/src/Accounts/Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Accounts/Import.php b/api/src/Accounts/Import.php index 9385d77207..9013fd8c2d 100644 --- a/api/src/Accounts/Import.php +++ b/api/src/Accounts/Import.php @@ -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;