- <td class="right" {if !$m->group_comm}colspan="2"{/if}>
- <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
- <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="email"}</a>
+ <td class="right" {if !$user->group_comm}colspan="2"{/if}>
+ {if $user->hasProfile()}
+ <a href="https://www.polytechnique.org/vcard/{$user->login()}.vcf">{icon name=vcard title="[vcard]"}</a>
+ {/if}
+ <a href="mailto:{$user->bestEmail()}">{icon name=email title="email"}</a>