I'm trying to do a simple isset condition in my html with php like this :
<table cellspacing="0" cellpadding="3" border="0">
<tr><td><?php print t('Adresse :'); ?> : </td><td><?php print $participant->adresse1; ?></td></tr>
<tr><td><?php print t(''); ?> : </td><td><?php print $participant->code_postal.' '.$participant->ville; ?></td></tr>
<tr><td><?php print t(''); ?> : </td><td><?php print $participant->pays; ?></td></tr>
<?php if(isset($participant->tel_perso)): ?><tr><td><?php print t('Tél :'); ?> : </td><td><?php print $participant->tel_perso; ?></td></tr><?php endif; ?>
<tr><td><?php print t('Email :'); ?> : </td><td><?php print $participant->email_id; ?></td></tr>
<tr><td><?php print t('Date de naissance :'); ?> : </td><td><?php print format_date($participant->date_naissance, "custom", "d F Y") ?></td></tr>
</table>
The problem is that this row is always show, even if the isset return false (I test it in the code before and it works)
WHy it's not working in html ?