X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FPages%2FForum.pm;h=b18bc350c8ddb08044395c922377f5b02ba402de;hb=f6cfe40e6a8da61229131a2d38a2535ae66da359;hp=81943a9707d7b2e2e47c06384b3591a162810fda;hpb=c5cc1151b5a4f1e52eb577a78df1f79dfdc193db;p=ndwebbie.git diff --git a/ND/Web/Pages/Forum.pm b/ND/Web/Pages/Forum.pm index 81943a9..b18bc35 100644 --- a/ND/Web/Pages/Forum.pm +++ b/ND/Web/Pages/Forum.pm @@ -164,6 +164,7 @@ sub render_body { $boards->execute($category->{id},$ND::UID) or $ND::ERROR .= p($DBH->errstr); my @boards; while (my $board = $boards->fetchrow_hashref){ + next if $board->{id} < 0; $threads->execute($board->{id},$ND::UID,1) or $ND::ERROR .= p($DBH->errstr); my $i = 0; my @threads; @@ -224,6 +225,7 @@ sub render_body { ,undef,$board->{fcid}) or $ND::ERROR .= p($DBH->errstr); $BODY->param(Category => $category); + }elsif($self->{URI} =~ m{^/.*/search/(.*)}){ #List threads in this board }else{ #List boards $BODY->param(Overview => 1); $categories->execute or $ND::ERROR .= p($DBH->errstr);