AVoid warning when fetching page data
This commit is contained in:
@@ -1116,7 +1116,7 @@ class ParseUrl
|
|||||||
}
|
}
|
||||||
|
|
||||||
$content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject');
|
$content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject');
|
||||||
if (!empty($content)) {
|
if (!empty($content) && is_string($content)) {
|
||||||
$jsonldinfo['author_img'] = trim($content);
|
$jsonldinfo['author_img'] = trim($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user