X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Ffunctions.php;h=5267bfb4e42105c33005af56152707fb75e2cec8;hp=fdb461e233448de9ce89fec9719b8b11e86bffa4;hb=e525ec3c4a6e6234fd63caad097845cc2935fc1b;hpb=f7037807083af50fcbf136cfbf18b617342d7c4e diff --git a/include/functions.php b/include/functions.php index fdb461e..5267bfb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,5 +1,5 @@ \n \n"; function cmp($a,$b) { @@ -942,7 +975,7 @@ function generate_global_score_table() $a=$a['points']/$a['nr']; $b=$b['points']/$b['nr']; - if ($a == $b) + if ($a == $b) return 0; return ($a > $b) ? -1 : 1; } @@ -953,7 +986,7 @@ function generate_global_score_table() echo " ",$pl['name'],"",round($pl['points']/$pl['nr'],3),"\n"; } echo "\n"; - + return; }