From 2e6e97cfe622a46ed17e0403269c9e41f6536da5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 4 Jan 2010 17:06:54 +0000 Subject: [PATCH] - web: don't show news items if they're hidden svn path=/trunk/boinc/; revision=20063 --- checkin_notes | 6 ++++++ html/inc/news.inc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 3349f6ef09..f165d576df 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/inc/news.inc b/html/inc/news.inc index 0b2ea19bb7..6348ba76ee 100644 --- a/html/inc/news.inc +++ b/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");