From 999eb93d0626d44dcc9744f0feecfc5eb8c73c3e Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 28 Jan 2021 19:05:31 -0700 Subject: [PATCH] Avoid displaying broken articles in np --- Rocksolid_Light/rocksolid/lib/thread.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/lib/thread.inc.php b/Rocksolid_Light/rocksolid/lib/thread.inc.php index af38144..68906d3 100644 --- a/Rocksolid_Light/rocksolid/lib/thread.inc.php +++ b/Rocksolid_Light/rocksolid/lib/thread.inc.php @@ -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++;