mirror of https://github.com/BOINC/boinc.git
- web: don't show news items if they're hidden
svn path=/trunk/boinc/; revision=20063
This commit is contained in:
parent
8d4906e4f1
commit
2e6e97cfe6
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue