Fix entry in list/members when the user has no name in X.net directory.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 28 Jun 2008 12:14:56 +0000 (14:14 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 28 Jun 2008 12:14:56 +0000 (14:14 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/lists/members.tpl

index b902968..135b6b8 100644 (file)
       {if $x.b}<a href="https://www.polytechnique.org/marketing/broken/{$x.l}">{icon name=error}</a>{/if}
       <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
       {elseif $x.x}
-      <a href="{$platal->ns}member/{$x.x}">{$x.n}</a>
+      <a href="{$platal->ns}member/{$x.x}">{if $x.n|trim}{$x.n}{else}{$x.l}{/if}</a>
       {elseif $x.n}
       {$x.n}
       {else}