Data type equality

This commit is contained in:
Michael RICOIS 2013-01-22 07:15:39 +00:00
parent 8f6620af04
commit 508f42d941

View File

@ -83,7 +83,7 @@
<select name="idClient"> <select name="idClient">
<option value="">-</option> <option value="">-</option>
<?php foreach ($this->clients as $client) {?> <?php foreach ($this->clients as $client) {?>
<?php $select = ''; if ( $client->id === $this->idClient) { $select = ' selected'; }?> <?php $select = ''; if ( null!=$this->idClient && $client->id == $this->idClient) { $select = ' selected'; }?>
<option value="<?=$client->id?>"<?=$select?>><?=$client->nom?></option> <option value="<?=$client->id?>"<?=$select?>><?=$client->nom?></option>
<?php }?> <?php }?>
</select> </select>