Handle fatal error when attachment url is null

pull/9492/head
Michael 2020-11-04 13:14:33 +00:00
parent d47d45e83f
commit 49fee4096a
1 changed files with 3 additions and 1 deletions

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]);
}
}
}