mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:48:03 +01:00
Merge pull request #10743 from annando/warning
Avoid warning when fetching page data
This commit is contained in:
commit
c9e30ac2c0
1 changed files with 5 additions and 1 deletions
|
@ -1116,7 +1116,11 @@ 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)) {
|
||||||
|
Logger::notice('Unexpected return value for the author image', ['content' => $content]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($content) && is_string($content)) {
|
||||||
$jsonldinfo['author_img'] = trim($content);
|
$jsonldinfo['author_img'] = trim($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue