FIX stickler
This commit is contained in:
parent
7a4b0e38cd
commit
446ba2a416
@ -1693,7 +1693,8 @@ class Form
|
|||||||
if ($showempty && ! is_numeric($showempty)) {
|
if ($showempty && ! is_numeric($showempty)) {
|
||||||
$textforempty = $showempty;
|
$textforempty = $showempty;
|
||||||
$out .= '<option class="optiongrey" value="-1"'.(in_array(-1, $selected) ? ' selected' : '').'>'.$textforempty.'</option>';
|
$out .= '<option class="optiongrey" value="-1"'.(in_array(-1, $selected) ? ' selected' : '').'>'.$textforempty.'</option>';
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
if (($showempty == 1 || ($showempty == 3 && $num > 1)) && ! $multiple) {
|
if (($showempty == 1 || ($showempty == 3 && $num > 1)) && ! $multiple) {
|
||||||
$out .= '<option value="0"'.(in_array(0, $selected) ? ' selected' : '').'> </option>';
|
$out .= '<option value="0"'.(in_array(0, $selected) ? ' selected' : '').'> </option>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user