Merge pull request #8609 from AlfredSK/fix-notice-in-probe

avoid notice in probe.php
This commit is contained in:
Hypolite Petovan 2020-05-08 09:31:12 -04:00 committed by GitHub
commit 8a4b830552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,7 @@ class Probe
$data[] = ["@attributes" => $link];
}
if (is_array($webfinger["aliases"])) {
if (!empty($webfinger["aliases"]) && is_array($webfinger["aliases"])) {
foreach ($webfinger["aliases"] as $alias) {
$data[] = ["@attributes" =>
["rel" => "alias",