From cb28eb82ff7549c888127ae29cb49024d2f2ca00 Mon Sep 17 00:00:00 2001 From: Marc Rodriguez <31536387+mrodespin@users.noreply.github.com> Date: Wed, 8 Nov 2023 07:30:36 +0100 Subject: [PATCH] Fix issue provoked after adding array casting and returning empty fcgi parameter to the command (#3724) --- contrib/cachetool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/cachetool.php b/contrib/cachetool.php index 5e8bd393..aa324ece 100644 --- a/contrib/cachetool.php +++ b/contrib/cachetool.php @@ -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}"; + } } }