]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #8609 from AlfredSK/fix-notice-in-probe
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 8 May 2020 13:31:12 +0000 (09:31 -0400)
committerGitHub <noreply@github.com>
Fri, 8 May 2020 13:31:12 +0000 (09:31 -0400)
avoid notice in probe.php

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