/forums/delete-post-do.php |
---|
11,7 → 11,7 |
if (($page->isUserAdmin($page->getLoggedInUser()) || $post->author->ID == $page->getLoggedInUser()->ID) && $post) |
{ |
$page->query('DELETE FROM ForumCategories WHERE ID = ' . $id); |
$page->query('DELETE FROM ForumPosts WHERE ID = ' . $id); |
$page->redirect('index.php'); |
} |
else |