Browse Source

option false est récupérée en string, on la convertit en bool

master
Cerdic 4 months ago
parent
commit
c822715fcd
  1. 3
      spip-cli/MailsubscriberSubscribe.php

3
spip-cli/MailsubscriberSubscribe.php

@ -81,6 +81,9 @@ 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;
}
$options[$o] = $value;
}
}

Loading…
Cancel
Save