From 412a0b3e1c39e296ca39938a75e7544c9f373bc3 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 10 May 2021 21:32:03 -0400 Subject: [PATCH] Ensure JsonD data passed to ParseURL::parseParts is an array - Address https://github.com/friendica/friendica/issues/10167#issuecomment-827894961 --- src/Util/ParseUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }