diff --git a/imgboard.php b/imgboard.php index 7f235c3..bbc6f1d 100644 --- a/imgboard.php +++ b/imgboard.php @@ -160,7 +160,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) { rebuildThread($post['parent']); if (strtolower($post['email']) != 'sage') { - if (TINYIB_MAXREPLIES == 0 || numRepliesToThreadByID($id) < TINYIB_MAXREPLIES) { + if (TINYIB_MAXREPLIES == 0 || numRepliesToThreadByID($post['parent']) < TINYIB_MAXREPLIES) { bumpThreadByID($post['parent']); } }