From d56afda27484a50ce9d6e50f7abacb6ac8b1fdbe Mon Sep 17 00:00:00 2001 From: Daniel Reichelt Date: Sun, 11 Sep 2016 02:24:00 +0200 Subject: [PATCH] fix "undefined index" warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHP Notice: Undefined index: parentdomainid in […]/froxlor/lib/classes/webserver/class.DomainSSL.php on line 49 --- scripts/jobs/cron_tasks.inc.http.10.apache.php | 1 + scripts/jobs/cron_tasks.inc.http.20.lighttpd.php | 3 ++- scripts/jobs/cron_tasks.inc.http.30.nginx.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.http.10.apache.php b/scripts/jobs/cron_tasks.inc.http.10.apache.php index c183e3e6..06eca8d4 100644 --- a/scripts/jobs/cron_tasks.inc.http.10.apache.php +++ b/scripts/jobs/cron_tasks.inc.http.10.apache.php @@ -369,6 +369,7 @@ class apache extends HttpConfigBase { 'adminid' => 1, /* first admin-user (superadmin) */ 'loginname' => 'froxlor.panel', 'documentroot' => $mypath, + 'parentdomainid' => 0, ); // override corresponding array values diff --git a/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php b/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php index ccd137c2..1b7dfadb 100644 --- a/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php +++ b/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php @@ -174,7 +174,8 @@ class lighttpd extends HttpConfigBase 'domain' => Settings::Get('system.hostname'), 'adminid' => 1, /* first admin-user (superadmin) */ 'loginname' => 'froxlor.panel', - 'documentroot' => $mypath + 'documentroot' => $mypath, + 'parentdomainid' => 0, ); // override corresponding array values diff --git a/scripts/jobs/cron_tasks.inc.http.30.nginx.php b/scripts/jobs/cron_tasks.inc.http.30.nginx.php index 10304be5..985b4f7e 100644 --- a/scripts/jobs/cron_tasks.inc.http.30.nginx.php +++ b/scripts/jobs/cron_tasks.inc.http.30.nginx.php @@ -156,7 +156,8 @@ class nginx extends HttpConfigBase { 'domain' => Settings::Get('system.hostname'), 'adminid' => 1, /* first admin-user (superadmin) */ 'loginname' => 'froxlor.panel', - 'documentroot' => $mypath + 'documentroot' => $mypath, + 'parentdomainid' => 0, ); // override corresponding array values