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 729170a7..77066449 100644
--- a/post.php
+++ b/post.php
@@ -17,7 +17,7 @@ if (get_magic_quotes_gpc()) {
$_POST = strip_array($_POST);
}
-if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
+if ((!isset($_POST['mod']) || !$_POST['mod']) && is_array($config['board_locked']) && in_array(strtolower($_POST["board"]), $config['board_locked'])) {
error("Board is locked");
}