Browse Source

Fix notice "Undefined index: openRegistrations"

tags/2019.12
Michael 1 year ago
parent
commit
c494b158c8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Protocol/PortableContact.php

+ 1
- 1
src/Protocol/PortableContact.php View 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;
}



Loading…
Cancel
Save