Fixing Typo

cert should not be a constant but a 'cert' string
This commit is contained in:
Primož Korošec
2019-04-09 09:13:34 +02:00
committed by Franco Fichtner
parent fa1bcce94c
commit 37bf44991c
@@ -113,7 +113,7 @@ foreach ($configNodes as $key => $value) {
continue;
}
// check if a default certificate is configured
if (($type == cert) and isset($child->ssl_default_certificate) and (string)$child->ssl_default_certificate != "") {
if (($type == 'cert') and isset($child->ssl_default_certificate) and (string)$child->ssl_default_certificate != "") {
$default_cert = (string)$child->ssl_default_certificate;
$default_cert_filename = $export_path . $default_cert . ".pem";
// ensure that the default certificate is the first entry on the list