]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: openRegistrations"
authorMichael <heluecht@pirati.ca>
Tue, 1 Oct 2019 19:27:33 +0000 (19:27 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 1 Oct 2019 19:27:33 +0000 (19:27 +0000)
src/Protocol/PortableContact.php

index def8f1b628bc3b667636843c9d701f2bf331c5fb..a1e6f7e21c1f17da1fdac8324262b4fe458ebd90 100644 (file)
@@ -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;
                }