Loosen Empty Check Strictness

This was asked for in a CR
This commit is contained in:
Phil Young
2021-06-22 09:29:08 +01:00
parent f473e5f73c
commit 1a2d2ae708

View File

@@ -64,15 +64,15 @@ class CustomHostnames implements API
$options['custom_origin_server'] = $customOriginServer;
}
if (empty($bundleMethod) === false) {
if (!empty($bundleMethod)) {
$options['ssl']['bundle_method'] = $bundleMethod;
}
if (empty($customKey) === false) {
if (!empty($customKey)) {
$options['ssl']['custom_key'] = $customKey;
}
if (empty($customCertificate) === false) {
if (!empty($customCertificate)) {
$options['ssl']['custom_certificate'] = $customCertificate;
}