] Modifier modèle: note visible par étudiant quand activée (checkbox de l'admin)

+ modification par l'admin
	+ visibilité au niveau de l'étudiant
This commit is contained in:
xdrm-brackets 2015-12-01 19:07:45 +01:00
parent 1fa1c5547f
commit 72507bb15a
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ if( permission('student') ){ // si l'utilisateur est connecté et que c'est un
echo '<tr>';
echo '<td><span class=link>'.$controle['libelle'].'</span></td>';
if( count($controle['notes']) == 0 ) // si aucune note pour ce controle on affiche 'Pas de note'
if( $controle['publication'] == '0' || count($controle['notes']) == 0 ) // si aucune note pour ce controle on affiche 'Pas de note'
echo '<td><span class=unstressed>Pas de note</span></td>';
else // si une note, alors on l'affiche
echo '<td>'.number_format($controle['notes'][0]['valeur'], 2).' <span class=unstressed>/</span> '.$controle['base'].'</td>';