{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2009 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<ul>
<li><a href="stats/evolution">Nombre d'inscrits au cours du temps</a></li>
-<li><a href="stats/promos/{$smarty.session.promo}">Nombre d'inscrits dans ta promotion</a></li>
+{assign var="profile" value=$smarty.session.user->profile()}
+{if $profile}
+<li><a href="stats/promos/{$profile->yearpromo()}">Nombre d'inscrits dans ta promotion</a></li>
+{/if}
<li><a href="stats/promos">Nombre d'inscrits par promotion</a></li>
-<li><a href="stats/profile">Consultations des fiches de l'annuaire</a></li>
</ul>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}