From: Michael Date: Sun, 28 Aug 2022 04:14:39 +0000 (+0000) Subject: Handle array X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=4e02c347b63ab1be30e402f2224f74b1cd1e6ccf;p=friendica.git Handle array --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index d0b1682785..02ef6be585 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -1131,6 +1131,8 @@ class ParseUrl $content = JsonLD::fetchElement($jsonld, 'logo', 'url', '@type', 'ImageObject'); if (!empty($content) && is_string($content)) { $jsonldinfo['publisher_img'] = trim($content); + } elseif (!empty($content) && is_array($content)) { + $jsonldinfo['publisher_img'] = trim($content[0]); } $content = JsonLD::fetchElement($jsonld, 'brand', 'name', '@type', 'Organization');