]> git.mxchange.org Git - friendica.git/commitdiff
Fixed a possible NULL value (not valid, at least empty string)
authorRoland Häder <roland@mxchange.org>
Fri, 29 Jul 2022 10:44:34 +0000 (12:44 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 29 Jul 2022 10:45:21 +0000 (12:45 +0200)
src/Protocol/DFRN.php

index 7593711e56364289a8e288c0029af53d12c98661..db3360dd1696f892041b1c53d3b4f096e1033e77 100644 (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 = '';
                }