Merge pull request #7689 from annando/fix-notice
Fix notice "Undefined index: openRegistrations"
This commit is contained in:
commit
c399890f6f
|
@ -720,7 +720,7 @@ class PortableContact
|
||||||
|
|
||||||
$server['register_policy'] = Register::CLOSED;
|
$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;
|
$server['register_policy'] = Register::OPEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue