From febb5af681e41284356b9fc74757fb00d3f5afcc Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Sun, 6 Jun 2021 19:27:10 -0700 Subject: [PATCH] Fix warning when deleting post --- inc/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/html.php b/inc/html.php index 6bf1921..058c449 100644 --- a/inc/html.php +++ b/inc/html.php @@ -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; }