Explorar o código

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

Eric Marguin %!s(int64=17) %!d(string=hai) anos
pai
achega
a21a47c847
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ?>