Browse Source

Fix warning when deleting post

sqlitefix
Trevor Slocum 1 year ago
parent
commit
febb5af681
  1. 2
      inc/html.php

2
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;
}

Loading…
Cancel
Save