forked from GithubBackups/tinyib
Fix warning when deleting post
This commit is contained in:
parent
c4dd643f53
commit
febb5af681
@ -824,7 +824,7 @@ function rebuildThread($id) {
|
|||||||
$id = intval($id);
|
$id = intval($id);
|
||||||
|
|
||||||
$post = postByID($id);
|
$post = postByID($id);
|
||||||
if ($post['moderated'] == 0) {
|
if (empty($post) || $post['moderated'] == 0) {
|
||||||
@unlink('res/' . $id . '.html');
|
@unlink('res/' . $id . '.html');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user