summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}