From: Hypolite Petovan Date: Tue, 11 May 2021 01:32:03 +0000 (-0400) Subject: Ensure JsonD data passed to ParseURL::parseParts is an array X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=412a0b3e1c39e296ca39938a75e7544c9f373bc3;p=friendica.git Ensure JsonD data passed to ParseURL::parseParts is an array - Address https://github.com/friendica/friendica/issues/10167#issuecomment-827894961 --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index 5dee4d3a29..d5c9f02ad4 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -695,7 +695,7 @@ class ParseUrl { if (!empty($jsonld['@graph']) && is_array($jsonld['@graph'])) { foreach ($jsonld['@graph'] as $part) { - if (!empty($part)) { + if (!empty($part) && is_array($part)) { $siteinfo = self::parseParts($siteinfo, $part); } }