mirror of
https://github.com/GuduleLapointe/opensim-helpers.git
synced 2026-08-14 00:47:54 +00:00
fix parser.php file_get_contents warning when region is offline (merge changes from w4os)
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user