include newsportal.php in cron.php. Check before closing in newsportal.php.

This commit is contained in:
Retro_Guy 2023-07-12 08:01:52 -07:00
parent 4fc6bd5090
commit b745359929
2 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,9 @@ function nntp2_open($nserver=0,$nport=0) {
$weg=line_read($ns); // kill the first line
if (substr($weg,0,2) != "20") {
echo "<p>".$text_error["error:"].$weg."</p>";
fclose($ns);
if($ns) {
fclose($ns);
}
$ns=false;
} else {
if ($ns != false) {

View File

@ -1,6 +1,7 @@
<?php
// This file runs maintenance scripts and should be executed by cron regularly
include "config.inc.php";
include "newsportal.php";
include $config_dir."/scripts/rslight-lib.php";
$menulist = file($config_dir."menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);