my @categories;
while (my $category = $categories->fetchrow_hashref){
$boards->execute($category->{id},$ND::UID) or $ND::ERROR .= p($DBH->errstr);
- if ($category->{id} == $board->{fcid}){
- $BODY->param(Category => $category->{category});
- }
my @boards;
while (my $b = $boards->fetchrow_hashref){
}
$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);
+ $BODY->param(Category => $category);
}else{ #List boards
$BODY->param(Overview => 1);