mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Fix a second time where the array might be false.
This commit is contained in:
1 parent
f42627c89f
commit
cf0e2774f6
1 file changed
+4
-2
+4
-2
@@ -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' ];
|
||||
|
||||
Reference in new issue
Block a user