]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Web/Pages/Forum.pm
gal rankings and fixed a bug with gal graph caching
[ndwebbie.git] / ND / Web / Pages / Forum.pm
index 81943a9707d7b2e2e47c06384b3591a162810fda..b18bc350c8ddb08044395c922377f5b02ba402de 100644 (file)
@@ -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);