From: Michael Date: Tue, 1 Oct 2019 19:27:33 +0000 (+0000) Subject: Fix notice "Undefined index: openRegistrations" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c494b158c896b6702984a953745969e41a147de2;p=friendica.git Fix notice "Undefined index: openRegistrations" --- diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index def8f1b628..a1e6f7e21c 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -720,7 +720,7 @@ class PortableContact $server['register_policy'] = Register::CLOSED; - if (is_bool($nodeinfo['openRegistrations']) && $nodeinfo['openRegistrations']) { + if (isset($nodeinfo['openRegistrations']) && is_bool($nodeinfo['openRegistrations']) && $nodeinfo['openRegistrations']) { $server['register_policy'] = Register::OPEN; }