- web: don't show news items if they're hidden

svn path=/trunk/boinc/; revision=20063
This commit is contained in:
David Anderson 2010-01-04 17:06:54 +00:00
parent 8d4906e4f1
commit 2e6e97cfe6
2 changed files with 7 additions and 1 deletions

View File

@ -3,3 +3,9 @@ David 3 Jan 2010
client/
coproc_detect.cpp
David 4 Jan 2010
- web: don't show news items if they're hidden
html/inc/
news.inc

View File

@ -70,7 +70,7 @@ function show_news($start, $count) {
} else if ($count) {
$lim = "limit $count";
}
$threads = BoincThread::enum("forum = $forum->id order by id desc $lim");
$threads = BoincThread::enum("forum = $forum->id and hidden=0 order by id desc $lim");
foreach ($threads as $thread) {
$posts = BoincPost::enum("thread=$thread->id order by id limit 1");