Fix error when $icfg is not set.

This commit is contained in:
ruliane 2022-10-22 11:38:35 +00:00 committed by Andrew Ruthven
parent 19ec6fd2fb
commit 43bda7a5ba

View File

@ -193,7 +193,7 @@ class iSchedule
function getServer ( ) function getServer ( )
{ {
global $icfg; global $icfg;
if ( $icfg [ $this->domain ] ) if ( isset($icfg) && $icfg [ $this->domain ] )
{ {
$this->remote_server = $icfg [ $this->domain ] [ 'server' ]; $this->remote_server = $icfg [ $this->domain ] [ 'server' ];
$this->remote_port = $icfg [ $this->domain ] [ 'port' ]; $this->remote_port = $icfg [ $this->domain ] [ 'port' ];