fix parser.php file_get_contents warning when region is offline (merge changes from w4os)

This commit is contained in:
Gudule Lapointe
2024-12-24 00:12:53 -04:00
parent dc6b03b812
commit 0c3e0146cb
+1 -1
View File
@@ -32,7 +32,7 @@ function hostCheck( $hostname, $port ) {
$failcounter = 0;
$interval = 600; // Wait at least 10 minutes before scanning the same host
$xml = file_get_contents( "http://$hostname:$port/?method=collector" );
@$xml = file_get_contents( "http://$hostname:$port/?method=collector" );
if ( empty( $xml ) ) {
// error_log( "$hostname:$port unreachable" );
$fails = $SearchDB->prepareAndExecute(