mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-21 01:54:23 +00:00
Fix a second time where the array might be false.
This commit is contained in:
parent
f42627c89f
commit
cf0e2774f6
@ -212,9 +212,8 @@ class iSchedule
|
||||
{
|
||||
$r = dns_get_record ( '_ischedules._tcp.' . implode ( '.', $parts ) , DNS_SRV );
|
||||
if ($r == false)
|
||||
{
|
||||
$r = Array();
|
||||
}
|
||||
|
||||
{
|
||||
$remote_server = $r [ 0 ] [ 'target' ];
|
||||
$remote_port = $r [ 0 ] [ 'port' ];
|
||||
@ -224,6 +223,9 @@ class iSchedule
|
||||
if ( ! isset ( $remote_server ) )
|
||||
{
|
||||
$r = dns_get_record ( '_ischedule._tcp.' . implode ( '.', $parts ) , DNS_SRV );
|
||||
if ($r == false)
|
||||
$r = Array();
|
||||
|
||||
if ( 0 < count ( $r ) )
|
||||
{
|
||||
$remote_server = $r [ 0 ] [ 'target' ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user