1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 04:20:28 +02:00

Corrections mineures

This commit is contained in:
Yohann
2019-10-05 00:24:31 +02:00
parent 66421eefb3
commit 9de0491755
7 changed files with 20 additions and 12 deletions

View File

@ -73,7 +73,7 @@ class Team
public static function getAllTeams($problem)
{
global $DB, $YEAR;
$req = $DB->prepare("SELECT * FROM `teams` WHERE " . ($problem <= 0 ? "" : "`problem` = ? AND ") . "`year` = $YEAR;");
$req = $DB->prepare("SELECT * FROM `teams` WHERE " . ($problem < 0 ? "" : "`problem` = ? AND ") . "`year` = $YEAR;");
$req->execute([htmlspecialchars($problem)]);
$teams = [];