diff options
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r-- | includes/sys_form.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/sys_form.php b/includes/sys_form.php index 936e3203..f890b7a7 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -405,7 +405,7 @@ function html_select_key($dom_id, $name, $rows, $selected) { $html = '<select class="form-control" id="' . $dom_id . '" name="' . $name . '">'; foreach ($rows as $key => $row) { - if (($key == $selected) || ($row == $selected)) { + if (($key == $selected) || ($row === $selected)) { $html .= '<option value="' . $key . '" selected="selected">' . $row . '</option>'; } else { $html .= '<option value="' . $key . '">' . $row . '</option>'; |