AVoid warning when fetching page data
This commit is contained in:
parent
be3fb5f205
commit
7ac76639c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue