From b7c1e745dd55e1abbbe201ff2ff3343b53076e23 Mon Sep 17 00:00:00 2001 From: Marc Rodriguez Date: Tue, 7 Nov 2023 15:17:22 +0100 Subject: [PATCH] Fix issue provoked after adding array casting and returning empty fcgi parameter to the command --- contrib/cachetool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/cachetool.php b/contrib/cachetool.php index 5e8bd3939..aa324eceb 100644 --- a/contrib/cachetool.php +++ b/contrib/cachetool.php @@ -72,7 +72,9 @@ $return = [$fullOptions]; } elseif (count($options) > 0) { foreach ($options as $option) { - $return[] = "--fcgi={$option}"; + if ($option !== '') { + $return[] = "--fcgi={$option}"; + } } }