Fix some code errors that should not be commited yesterday... (sry)

This commit is contained in:
Quentin Grosyeux 2013-11-26 20:25:25 +01:00
parent 62fca492ad
commit 11dc0c153a

View File

@ -9,17 +9,17 @@ function cmp_team_pts($i1, $i2)
$timestampi1 = $db->unique_query("SELECT MAX( s.time ) AS maxTime
FROM solved AS s
WHERE s.id_team =".$i1);
WHERE s.id_team =".$i1->get_id());
$timestampi2 = $db->unique_query("SELECT MAX( s.time ) AS maxTime
FROM solved AS s
WHERE s.id_team =".$i12);
WHERE s.id_team =".$i2->get_id());
$db->deconnexion();
if ($timestampi1 < $timestampi2){
return 1
if ($timestampi1['maxTime'] > $timestampi2['maxTime'])
return 1;
else
return -1
return -1;
}
else{
return ($i1->get_pts() < $i2->get_pts()) ? 1 : -1;