Browse Source

Merge pull request #7689 from annando/fix-notice

Fix notice "Undefined index: openRegistrations"
pull/7692/head
Philipp 2 years ago
committed by GitHub
parent
commit
c399890f6f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Protocol/PortableContact.php

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

Loading…
Cancel
Save