From c494b158c896b6702984a953745969e41a147de2 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 1 Oct 2019 19:27:33 +0000 Subject: [PATCH] Fix notice "Undefined index: openRegistrations" --- src/Protocol/PortableContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index def8f1b62..a1e6f7e21 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; }