From: Michael Date: Mon, 3 May 2021 18:43:38 +0000 (+0000) Subject: Fix fatal error because of parameter type mismatch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=684160816492123d6cbf90b1b596069572c7403d;p=friendica.git Fix fatal error because of parameter type mismatch --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index 77611168d4..5dee4d3a29 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -711,7 +711,7 @@ class ParseUrl } if ($numeric_keys) { foreach ($jsonld as $part) { - if (!empty($part)) { + if (!empty($part) && is_array($part)) { $siteinfo = self::parseParts($siteinfo, $part); } }