mirror of https://github.com/BOINC/boinc.git
- web: fix bug if news item title occurs in middle of content
svn path=/trunk/boinc/; revision=20004
This commit is contained in:
parent
37ea627866
commit
8132f29140
|
@ -10503,3 +10503,9 @@ David 21 Dec 2009
|
|||
work_fetch.h
|
||||
lib/
|
||||
notice.cpp
|
||||
|
||||
David 21 Dec 2009
|
||||
- web: fix bug if news item title occurs in middle of content
|
||||
|
||||
html/inc/
|
||||
news.inc
|
||||
|
|
|
@ -61,7 +61,7 @@ function show_news($start, $count) {
|
|||
foreach ($threads as $thread) {
|
||||
$posts = BoincPost::enum("thread=$thread->id order by id limit 1");
|
||||
$post = $posts[0];
|
||||
if (strstr($post->content, $thread->title)) {
|
||||
if (strstr($post->content, $thread->title) == $post->content) {
|
||||
$title = null;
|
||||
} else {
|
||||
$title = $thread->title;
|
||||
|
|
Loading…
Reference in New Issue