From 31e4eaf3a4a406789d63f2c5d81c366091164404 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Tue, 16 Jan 2007 16:58:01 +0000 Subject: [PATCH] oops --- ND/Web/Pages/Forum.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ND/Web/Pages/Forum.pm b/ND/Web/Pages/Forum.pm index 6cc441f..17ef00b 100644 --- a/ND/Web/Pages/Forum.pm +++ b/ND/Web/Pages/Forum.pm @@ -202,7 +202,6 @@ sub render { my @categories; while (my $category = $categories->fetchrow_hashref){ $boards->execute($category->{id},$ND::UID) or $ND::ERROR .= p($DBH->errstr); - #TODO: really need to do this outside, so you don't need moderate access my @boards; while (my $b = $boards->fetchrow_hashref){ @@ -216,8 +215,9 @@ sub render { } $BODY->param(Categories => \@categories); } - my ($category) = $DBH->selectrow_array(q{SELECT category FROM forum_categories WHERE fcid = $1} - ,undef,$board->{fcid}) or $ND::ERROR .= p($DBH->errstr); + my ($category) = $DBH->selectrow_array(q{SELECT category FROM forum_categories WHERE fcid = $1} + ,undef,$board->{fcid}) or $ND::ERROR .= p($DBH->errstr); + $BODY->param(Category => $category); }else{ #List boards $BODY->param(Overview => 1); -- 2.39.2