Data type equality
This commit is contained in:
parent
8f6620af04
commit
508f42d941
@ -83,7 +83,7 @@
|
||||
<select name="idClient">
|
||||
<option value="">-</option>
|
||||
<?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>
|
||||
<?php }?>
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user