1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 07:50:23 +01:00

fix previous commit

This commit is contained in:
czaks 2014-04-18 14:33:50 +02:00
parent 9d60f68474
commit 7a35cbd519

View File

@ -150,6 +150,8 @@ if (isset($_POST['delete'])) {
if (!isset($_POST['body'], $_POST['board']))
error($config['error']['bot']);
$post = array('board' => $_POST['board']);
// Check if board exists
if (!openBoard($post['board']))
error($config['error']['noboard']);
@ -164,9 +166,7 @@ if (isset($_POST['delete'])) {
$_POST['subject'] = '';
if (!isset($_POST['password']))
$_POST['password'] = '';
$post = array('board' => $_POST['board']);
$_POST['password'] = '';
if (isset($_POST['thread'])) {
$post['op'] = false;