Fixes errors on validation page.
authorStéphane Jacob <sj@m4x.org>
Wed, 16 Feb 2011 21:24:17 +0000 (22:24 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 21 Feb 2011 14:14:56 +0000 (15:14 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/admin/validation.tpl

index c7c3b55..d0135a7 100644 (file)
@@ -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>