Fix warning when deleting post

This commit is contained in:
Trevor Slocum 2021-06-06 19:27:10 -07:00
parent c4dd643f53
commit febb5af681
1 changed files with 1 additions and 1 deletions

View File

@ -824,7 +824,7 @@ function rebuildThread($id) {
$id = intval($id);
$post = postByID($id);
if ($post['moderated'] == 0) {
if (empty($post) || $post['moderated'] == 0) {
@unlink('res/' . $id . '.html');
return;
}