From: Michael Date: Wed, 22 Sep 2021 03:25:01 +0000 (+0000) Subject: Log unexpected value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=840d9823d4b9dda0053a6a97fa203a0154ba156d;p=friendica.git Log unexpected value --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index d40a0a4e91..5891649525 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -1116,6 +1116,10 @@ class ParseUrl } $content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject'); + if (!empty($content) && !is_string($content)) { + Logger::notice('Unexpected return value for the author image', ['content' => $content]); + } + if (!empty($content) && is_string($content)) { $jsonldinfo['author_img'] = trim($content); }