Avoid displaying broken articles in np
This commit is contained in:
parent
efa401bc0e
commit
999eb93d06
|
@ -906,7 +906,8 @@ function thread_show_recursive(&$headers,&$liste,$depth,$tree,$group,$article_fi
|
||||||
// read the first article
|
// read the first article
|
||||||
$c=$headers[$liste[$i]];
|
$c=$headers[$liste[$i]];
|
||||||
// Avoid listing if error (fixme)
|
// Avoid listing if error (fixme)
|
||||||
if (preg_match('/\D/', $c->number)) {
|
// if (preg_match('/\D/', $c->number)) {
|
||||||
|
if(!is_numeric($c->number) || !isset($c->id) || $c->date < 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$article_count++;
|
$article_count++;
|
||||||
|
|
Loading…
Reference in New Issue