1
0
Fork 0

Log unexpected value

This commit is contained in:
Michael 2021-09-22 03:25:01 +00:00
parent 7ac76639c5
commit 840d9823d4

View file

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