Verify overview exists before reading for XOVER in rslight-lib.php.

This commit is contained in:
Retro_Guy 2023-05-13 12:33:55 -07:00
parent 8cb989a440
commit 09deebae1a
1 changed files with 10 additions and 8 deletions

View File

@ -658,6 +658,7 @@ function get_xover($articles, $msgsock) {
}
}
fwrite($msgsock, $output, strlen($output));
if(file_exists($overviewfile)) {
$overviewfp=fopen($overviewfile, 'r');
while($overviewline=fgets($overviewfp)) {
$article=preg_split("/[\s,]+/", $overviewline);
@ -669,6 +670,7 @@ function get_xover($articles, $msgsock) {
}
}
fclose($overviewfp);
}
$msg.=".\r\n";
return $msg;
}