Fix: Le titre de civilit tait mal positionn.

This commit is contained in:
Laurent Destailleur 2004-12-25 18:31:51 +00:00
parent d2b1b6660c
commit 1a86509387

View File

@ -384,7 +384,7 @@ class Form
if ($this->db->query($sql))
{
print '<select name="civilite_id">';
print '<option value="">';
print '<option value="">&nbsp;</option>';
$num = $this->db->num_rows();
$i = 0;
if ($num)
@ -392,7 +392,7 @@ class Form
while ($i < $num)
{
$obj = $this->db->fetch_object();
if ($selected == $obj->rowid)
if ($selected == $obj->code)
{
print '<option value="'.$obj->code.'" selected>';
}