]> git.mxchange.org Git - friendica.git/commitdiff
avoid notice in probe.php
authorroot <root@libranet.de>
Fri, 8 May 2020 13:06:40 +0000 (13:06 +0000)
committerroot <root@libranet.de>
Fri, 8 May 2020 13:06:40 +0000 (13:06 +0000)
src/Network/Probe.php

index 1e6d8406a12697b58bc181708705ede0d4310fbe..edcb9f4c342c0e2989d605ec64a9e22a425b7e5f 100644 (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",