summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2015-02-27 16:50:41 +0100
committerMarcin Łabanowski <marcin@6irc.net>2015-02-27 16:50:41 +0100
commitf51e72c63de889b8ce1904a993d008967f99b583 (patch)
tree8b92592ec6fd8d6ba4b0e346eca39cd718004c53 /post.php
parenta93f168c79a0c8137a6d9032d42e598469b4b072 (diff)
parent6d28f9c98e8b436e0f79f0abb56f4d706fe3722d (diff)
Merge pull request #123 from JasonPuglisi/master
Fixed not being able to post without 'mod' post variable set
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index d1c963f5..d33c8150 100644
--- a/post.php
+++ b/post.php
@@ -16,7 +16,7 @@ if (get_magic_quotes_gpc()) {
$_POST = strip_array($_POST);
}
-if (!$_POST['mod'] && $config['board_locked']) {
+if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
error("Board is locked");
}