Merge pull request #6231 from annando/notice

Fix for notice
This commit is contained in:
Hypolite Petovan 2018-12-03 15:08:36 -05:00 committed by GitHub
commit 89f5a9c550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -734,7 +734,7 @@ class PortableContact
}
}
if (is_array($nodeinfo['metadata']) && isset($nodeinfo['metadata']['nodeName'])) {
if (isset($nodeinfo['metadata']['nodeName'])) {
$server['site_name'] = $nodeinfo['metadata']['nodeName'];
}
@ -817,7 +817,7 @@ class PortableContact
}
}
if (is_array($nodeinfo['metadata']) && isset($nodeinfo['metadata']['nodeName'])) {
if (isset($nodeinfo['metadata']['nodeName'])) {
$server['site_name'] = $nodeinfo['metadata']['nodeName'];
}