summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-18 14:33:50 +0200
committerczaks <marcin@6irc.net>2014-04-18 14:33:50 +0200
commit1fb362a7c0d9ce3250f9ff167171dab4add65743 (patch)
tree1d7a1402c2af565a26c6ebb3eb15e883eb935034 /post.php
parent8e9db69375525c9e364a6d1c63a3300948edd13b (diff)
fix previous commit
Diffstat (limited to 'post.php')
-rw-r--r--post.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/post.php b/post.php
index 7b356bc3..b18fc138 100644
--- a/post.php
+++ b/post.php
@@ -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;