Merge pull request #9492 from annando/fix-fatal

Handle fatal error when attachment url is null
This commit is contained in:
Hypolite Petovan 2020-11-04 09:56:53 -05:00 committed by GitHub
commit c9c3d022bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ class Processor
}
$item['body'] .= "\n[video]" . $attach['url'] . '[/video]';
} else {
} elseif (!empty($attach['url'])) {
if (!empty($item['attach'])) {
$item['attach'] .= ',';
} else {
@ -202,6 +202,8 @@ class Processor
$attach['mediaType'] ?? '',
$attach['name'] ?? ''
);
} else {
Logger::notice('Unknown attachment', ['attach' => $attach]);
}
}
}