Fix selecting 0 values in htmlSelect. Fixes not showing ZM_LOG_DATABASE_LEVEL==Info

pull/3621/head
Isaac Connor 2022-10-21 16:29:26 -04:00
parent 3d68896625
commit 2e03d91ef7
1 changed files with 1 additions and 1 deletions
web/includes

View File

@ -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;