mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
fix previous commit
This commit is contained in:
parent
8e9db69375
commit
1fb362a7c0
4
post.php
4
post.php
@ -150,6 +150,8 @@ if (isset($_POST['delete'])) {
|
|||||||
if (!isset($_POST['body'], $_POST['board']))
|
if (!isset($_POST['body'], $_POST['board']))
|
||||||
error($config['error']['bot']);
|
error($config['error']['bot']);
|
||||||
|
|
||||||
|
$post = array('board' => $_POST['board']);
|
||||||
|
|
||||||
// Check if board exists
|
// Check if board exists
|
||||||
if (!openBoard($post['board']))
|
if (!openBoard($post['board']))
|
||||||
error($config['error']['noboard']);
|
error($config['error']['noboard']);
|
||||||
@ -166,8 +168,6 @@ if (isset($_POST['delete'])) {
|
|||||||
if (!isset($_POST['password']))
|
if (!isset($_POST['password']))
|
||||||
$_POST['password'] = '';
|
$_POST['password'] = '';
|
||||||
|
|
||||||
$post = array('board' => $_POST['board']);
|
|
||||||
|
|
||||||
if (isset($_POST['thread'])) {
|
if (isset($_POST['thread'])) {
|
||||||
$post['op'] = false;
|
$post['op'] = false;
|
||||||
$post['thread'] = round($_POST['thread']);
|
$post['thread'] = round($_POST['thread']);
|
||||||
|
Loading…
Reference in New Issue
Block a user