From 43bda7a5ba1518e455dd2618f799828f75e69775 Mon Sep 17 00:00:00 2001 From: ruliane Date: Sat, 22 Oct 2022 11:38:35 +0000 Subject: [PATCH] Fix error when $icfg is not set. --- inc/iSchedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/iSchedule.php b/inc/iSchedule.php index 643142ff..aea2cc6c 100644 --- a/inc/iSchedule.php +++ b/inc/iSchedule.php @@ -193,7 +193,7 @@ class iSchedule function getServer ( ) { global $icfg; - if ( $icfg [ $this->domain ] ) + if ( isset($icfg) && $icfg [ $this->domain ] ) { $this->remote_server = $icfg [ $this->domain ] [ 'server' ]; $this->remote_port = $icfg [ $this->domain ] [ 'port' ];