Avoid displaying broken articles in np

This commit is contained in:
Retro_Guy 2021-01-28 19:05:31 -07:00
parent efa401bc0e
commit 999eb93d06
1 changed files with 2 additions and 1 deletions

View File

@ -906,7 +906,8 @@ function thread_show_recursive(&$headers,&$liste,$depth,$tree,$group,$article_fi
// read the first article
$c=$headers[$liste[$i]];
// 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;
}
$article_count++;