Fix selecting 0 values in htmlSelect. Fixes not showing ZM_LOG_DATABASE_LEVEL==Info
parent
3d68896625
commit
2e03d91ef7
web/includes
|
@ -470,7 +470,7 @@ function htmlOptions($options, $values) {
|
|||
$text = $option;
|
||||
}
|
||||
$selected = false;
|
||||
if ($values) {
|
||||
if ($values !== null) {
|
||||
$selected = is_array($values) ? in_array($value, $values) : (!strcmp($value, $values));
|
||||
if ( !$has_selected )
|
||||
$has_selected = $selected;
|
||||
|
|
Loading…
Reference in New Issue