Fix exceptions in the channel check

This commit is contained in:
Michael 2023-11-25 16:17:26 +00:00
parent c649230982
commit 3f971f6dec
3 changed files with 7 additions and 5 deletions

View file

@ -76,7 +76,7 @@ class Reports extends BaseModeration
while ($post = $this->database->fetch($posts)) {
if (in_array($post['rid'], array_keys($reports))) {
$post['created'] = DateTimeFormat::local($post['created'], DateTimeFormat::MYSQL);
$post['body'] = BBCode::toPlaintext($post['body']);
$post['body'] = BBCode::toPlaintext($post['body'] ?? '');
$reports[$post['rid']]['posts'][] = $post;
}