From 1f1296f864ce9522199f42644065b54f51d86e41 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Mon, 15 Apr 2013 20:03:19 -0700 Subject: [PATCH] Fix call to numRepliesToThreadByID() --- imgboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } }