Merge pull request #7689 from annando/fix-notice

Fix notice "Undefined index: openRegistrations"
This commit is contained in:
Philipp 2019-10-01 21:40:59 +02:00 committed by GitHub
當前提交 c399890f6f
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除

查看文件

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