convertir aussi le 'true' en true

saisie_type_choix
Cerdic 1 year ago
parent c822715fcd
commit b9ce8844fe

@ -81,8 +81,13 @@ class MailsubscriberSubscribe extends Command {
$options = array();
foreach (array('nom', 'lang', 'force', 'graceful', 'notify') as $o) {
if (!is_null($value= $input->getOption($o))) {
if (in_array($o, ['force', 'graceful', 'notify']) and $value === 'false') {
$value = false;
if (in_array($o, ['force', 'graceful', 'notify'])) {
if ($value === 'false') {
$value = false;
}
if ($value === 'true') {
$value = true;
}
}
$options[$o] = $value;
}

Loading…
Cancel
Save