summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/post.php b/post.php
index d5cb9d13..bdc4819f 100644
--- a/post.php
+++ b/post.php
@@ -83,6 +83,8 @@
sql_open();
if(!openBoard($post['board'])) error(ERROR_NOBOARD);
+ if(!$OP && !threadExists($post['thread']))
+ error(ERROR_NONEXISTANT);
$trip = generate_tripcode($post['name']);
$post['name'] = $trip[0];