Fix notice "Undefined index: openRegistrations"

pull/7689/head
Michael 2019-10-01 19:27:33 +00:00
rodzic f16bf04f54
commit c494b158c8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
}