Log unexpected value

pull/10743/head
Michael 2021-09-22 03:25:01 +00:00
rodzic 7ac76639c5
commit 840d9823d4
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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