avoid notice in probe.php

This commit is contained in:
root 2020-05-08 13:06:40 +00:00
parent e53e471b6b
commit 68b63ec647

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",