summaryrefslogtreecommitdiff
path: root/includes/sys_form.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-07-23 12:09:42 +0200
committermsquare <msquare@notrademark.de>2017-07-23 12:09:42 +0200
commit4d08434d3138395802d5f4d2333d3758f64ea363 (patch)
tree026e0b316b1f81cfdcc2cc360337855fbb5b0ae3 /includes/sys_form.php
parent908f5712cc97f9476de7a9530b5b3289c5deaf1d (diff)
fix problem with html select containing 0 as key
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r--includes/sys_form.php2
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>';