Fixed a possible NULL value (not valid, at least empty string)

This commit is contained in:
Roland Häder 2022-07-29 12:44:34 +02:00
parent f8ed028013
commit 95ac2aa54b
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

@ -985,7 +985,7 @@ class DFRN
Logger::notice('Unable to find contact details for ' . $contact['id'] . ' - ' . $contact['addr']);
return -22;
}
$pubkey = $fcontact['pubkey'];
$pubkey = $fcontact['pubkey'] ?? '';
} else {
$pubkey = '';
}