]> ruin.nu Git - ndwebbie.git/blobdiff - forum.pl
small fix
[ndwebbie.git] / forum.pl
index cb384c288e85a35171d63c80b48c4298fdbaaa4f..c7f0d047ac3d3fbfa4ae3f7ee23946370b46eacd 100644 (file)
--- a/forum.pl
+++ b/forum.pl
@@ -43,7 +43,7 @@ if ($thread){ #Display the thread
 }elsif($board){ #List threads in this board
        $BODY->param(Board => 1);
        $BODY->param(Post => $board->{post});
-       $BODY->param(Post => $board->{id});
+       $BODY->param(Id => $board->{id});
        my $threads = $DBH->prepare(q{SELECT ft.ftid AS id,ft.subject,count(NULLIF(COALESCE(fp.time > ftv.time,TRUE),FALSE)) AS unread,count(fp.fpid) AS posts
 FROM forum_threads ft JOIN forum_posts fp USING (ftid) LEFT OUTER JOIN forum_thread_visits ftv ON ftv.ftid = ft.ftid
 WHERE ft.fbid = $1