diff --git a/inc/iSchedule.php b/inc/iSchedule.php index 01decea8..1adf432f 100644 --- a/inc/iSchedule.php +++ b/inc/iSchedule.php @@ -211,7 +211,10 @@ class iSchedule while ( count ( $parts ) >= $len ) { $r = dns_get_record ( '_ischedules._tcp.' . implode ( '.', $parts ) , DNS_SRV ); - if ( 0 < count ( $r ) ) + if ($r == false) + { + $r = Array(); + } { $remote_server = $r [ 0 ] [ 'target' ]; $remote_port = $r [ 0 ] [ 'port' ];