From 95ac2aa54bc98e0c2aceec198de6c37aba7914bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 29 Jul 2022 12:44:34 +0200 Subject: [PATCH] Fixed a possible NULL value (not valid, at least empty string) --- src/Protocol/DFRN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 7593711e56..db3360dd16 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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 = ''; } -- 2.39.5