include newsportal.php in cron.php. Check before closing in newsportal.php.
This commit is contained in:
parent
4fc6bd5090
commit
b745359929
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue