Merge branch 'xorg/maint'
[platal.git] / templates / admin / validation.tpl
index c7c3b55..5f84e42 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -51,10 +51,12 @@ function toggleField(name, id, obj) {
       <a href="profile/{$profile->hrpid}" class="popup2">
       {/if}
         {$valid->user->fullName("promo")}
+      {if $valid->user->hasProfile()}
       </a>
+      {/if}
     </td>
   </tr>
-  {if $valid->profile && !$valid->userIsProfileOwner}
+  {if t($valid->profile) && !$valid->userIsProfileOwner}
   <tr>
     <td class="titre" style="width: 20%">Profil concernĂ©&nbsp;:</td>
     <td>