summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/post.php b/post.php
index cdc51ffd..452aa054 100644
--- a/post.php
+++ b/post.php
@@ -70,6 +70,9 @@
if(!$OP && !threadExists($post['thread']))
error(ERROR_NONEXISTANT);
+ if(!$OP && threadLocked($post['thread']))
+ error(ERROR_LOCKED);
+
// Check for a file
if($OP) {
if(!isset($_FILES['file']['tmp_name']) || empty($_FILES['file']['tmp_name']))