Log unexpected value
This commit is contained in:
parent
7ac76639c5
commit
840d9823d4
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue