Prevent a notice ... again

This commit is contained in:
Michael 2019-01-04 15:34:53 +00:00
parent 034d0f650b
commit d8d5031935

View file

@ -1228,7 +1228,7 @@ class OStatus
{
$siteinfo = BBCode::getAttachedData($body);
if (($siteinfo["type"] == "photo")) {
if (($siteinfo["type"] == "photo") && (!empty($siteinfo["preview"]) || !empty($siteinfo["image"]))) {
if (isset($siteinfo["preview"])) {
$preview = $siteinfo["preview"];
} else {