Fix for notice

This commit is contained in:
Michael 2018-12-03 16:32:03 +00:00
parent bfe809f60d
commit d76003797a

View file

@ -734,7 +734,7 @@ class PortableContact
}
}
if (is_array($nodeinfo['metadata']) && isset($nodeinfo['metadata']['nodeName'])) {
if (!empty($nodeinfo['metadata']) && 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 (!empty($nodeinfo['metadata']) && isset($nodeinfo['metadata']['nodeName'])) {
$server['site_name'] = $nodeinfo['metadata']['nodeName'];
}