Sfoglia il codice sorgente

[svn r14268] if all the weightings of a lp are 0, then display a score of '-' more than a score of '0%'

Eric Marguin 17 anni fa
parent
commit
a21a47c847
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      main/mySpace/myStudents.php

+ 1 - 1
main/mySpace/myStudents.php

@@ -597,7 +597,7 @@ if(!empty($_GET['student']))
 						<?php echo api_time_to_hms($total_time) ?>
 						</td>
 						<td align="right">
-							<?php echo $score.'%' ?>
+							<?php echo $total_weighting>0 ? $score.'%' : '-' ?>
 						</td>
 						<td align="right">
 							<?php echo $progress ?>