fix possible php-7.4 notice 'Trying to access array offset on value of type bool'
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -928,7 +928,7 @@ class Apache extends HttpConfigBase
|
||||
'domainid' => $domain['id']
|
||||
));
|
||||
|
||||
if ($ssldestport['port'] != '') {
|
||||
if ($ssldestport && $ssldestport['port'] != '') {
|
||||
$_sslport = ":" . $ssldestport['port'];
|
||||
}
|
||||
|
||||
|
||||
@@ -451,7 +451,7 @@ class Lighttpd extends HttpConfigBase
|
||||
'domainid' => $domain['id']
|
||||
));
|
||||
|
||||
if ($ssldestport['port'] != '') {
|
||||
if ($ssldestport && $ssldestport['port'] != '') {
|
||||
$_sslport = ":" . $ssldestport['port'];
|
||||
}
|
||||
|
||||
|
||||
@@ -476,7 +476,7 @@ class Nginx extends HttpConfigBase
|
||||
'domainid' => $domain['id']
|
||||
));
|
||||
|
||||
if ($ssldestport['port'] != '') {
|
||||
if ($ssldestport && $ssldestport['port'] != '') {
|
||||
$_sslport = ":" . $ssldestport['port'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user