Update html.form.class.php

This commit is contained in:
Laurent Destailleur 2020-10-25 14:55:52 +01:00 committed by GitHub
parent 1d62834b2c
commit dbf626b92b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3880,7 +3880,7 @@ class Form
while ($i < $num)
{
$obj = $this->db->fetch_object($result);
if ($selected == $obj->rowid || ($useempty === 2 && $num === 1 && empty($selected)))
if ($selected == $obj->rowid || ($useempty == 2 && $num == 1 && empty($selected)))
{
print '<option value="'.$obj->rowid.'" selected>';
} else {