mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-14 09:34:32 -04:00
Fix selecting 0 values in htmlSelect. Fixes not showing ZM_LOG_DATABASE_LEVEL==Info
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user