1
0
Fork 0

Check for existing protocols.inbound value in Protocol\PortableContact

This commit is contained in:
Hypolite Petovan 2019-06-14 06:25:44 -04:00
parent 66d4f1d40b
commit 95094aa53d

View file

@ -749,7 +749,7 @@ class PortableContact
$friendica = false; $friendica = false;
$gnusocial = false; $gnusocial = false;
if (is_array($nodeinfo['protocols']['inbound'])) { if (!empty($nodeinfo['protocols']['inbound']) && is_array($nodeinfo['protocols']['inbound'])) {
foreach ($nodeinfo['protocols']['inbound'] as $inbound) { foreach ($nodeinfo['protocols']['inbound'] as $inbound) {
if ($inbound == 'diaspora') { if ($inbound == 'diaspora') {
$diaspora = true; $diaspora = true;