From: root Date: Fri, 8 May 2020 13:06:40 +0000 (+0000) Subject: avoid notice in probe.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=68b63ec64708d6b22dadac5492f000a35245a107;p=friendica.git avoid notice in probe.php --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 1e6d8406a1..edcb9f4c34 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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",