Fix phpcs

This commit is contained in:
Laurent Destailleur 2022-01-26 11:30:19 +01:00
parent 2dda4f5924
commit 7b990a1a7f

View File

@ -1693,8 +1693,7 @@ class Form
if ($showempty && ! is_numeric($showempty)) {
$textforempty = $showempty;
$out .= '<option class="optiongrey" value="-1"'.(in_array(-1, $selected) ? ' selected' : '').'>'.$textforempty.'</option>';
}
else {
} else {
if (($showempty == 1 || ($showempty == 3 && $num > 1)) && ! $multiple) {
$out .= '<option value="0"'.(in_array(0, $selected) ? ' selected' : '').'>&nbsp;</option>';
}