From 2e03d91ef7e71b62f5791d2afff6bbe7d2c82a65 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 21 Oct 2022 16:29:26 -0400 Subject: [PATCH] Fix selecting 0 values in htmlSelect. Fixes not showing ZM_LOG_DATABASE_LEVEL==Info --- web/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 17f58eb3b..0dd5676f4 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -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;