AVoid warning when fetching page data

This commit is contained in:
Michael 2021-09-22 02:41:24 +00:00
parent be3fb5f205
commit 7ac76639c5
1 changed files with 1 additions and 1 deletions

View File

@ -1116,7 +1116,7 @@ class ParseUrl
}
$content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject');
if (!empty($content)) {
if (!empty($content) && is_string($content)) {
$jsonldinfo['author_img'] = trim($content);
}