Fix issue provoked after adding array casting and returning empty fcgi parameter to the command (#3724)

This commit is contained in:
Marc Rodriguez 2023-11-08 07:30:36 +01:00 committed by GitHub
parent 5c62c45799
commit cb28eb82ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,9 @@ set('cachetool_options', function () {
$return = [$fullOptions];
} elseif (count($options) > 0) {
foreach ($options as $option) {
$return[] = "--fcgi={$option}";
if ($option !== '') {
$return[] = "--fcgi={$option}";
}
}
}