Ensure JsonD data passed to ParseURL::parseParts is an array

- Address https://github.com/friendica/friendica/issues/10167#issuecomment-827894961
This commit is contained in:
Hypolite Petovan 2021-05-10 21:32:03 -04:00
parent f69dab6d1c
commit 412a0b3e1c

View file

@ -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);
}
}