From 12c7293708f7e9ffe7cc5ee29e1ae0499a268ce0 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 13 Jan 2021 15:58:19 -0700 Subject: [PATCH] Check only if np spool exists, not size --- Rocksolid_Light/rocksolid/lib/thread.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Rocksolid_Light/rocksolid/lib/thread.inc.php b/Rocksolid_Light/rocksolid/lib/thread.inc.php index 39316f5..d08d5f6 100644 --- a/Rocksolid_Light/rocksolid/lib/thread.inc.php +++ b/Rocksolid_Light/rocksolid/lib/thread.inc.php @@ -302,9 +302,8 @@ function thread_load_newsserver(&$ns,$groupname,$poll) { // t: low watermark increased, remove expired articles $spoolopenmodus="n"; // if the group-info file doesn't exist: create it - if (!((file_exists($infofilename)) && (file_exists($spoolfilename)) && - (filesize($infofilename)>0) && (filesize($spoolfilename)>0))) { - file_put_contents($logfile, "\n".format_log_date()." ".$config_name." ".$infofilename." does not exist. Rebuilding ".$groupname, FILE_APPEND); + if (!((file_exists($infofilename)) && (file_exists($spoolfilename)))) { + file_put_contents($logfile, "\n".format_log_date()." ".$config_name." ".$infofilename." or ".$spoolfilename." does not exist. Rebuilding ".$groupname, FILE_APPEND); $spoolopenmodus="w"; } else { $infofile=fopen($infofilename,"r");