1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-26 00:27:32 +02:00

Validation paiements

This commit is contained in:
Yohann D'ANELLO
2020-01-14 12:21:18 +01:00
parent 4b6d6f24ea
commit b86675ba98
6 changed files with 198 additions and 9 deletions

View File

@ -11,7 +11,8 @@ if (!isset($_SESSION["user_id"]))
$user = $_SESSION["user"];
$team = $_SESSION["team"];
$tournament = Tournament::fromId($team->getTournamentId());
if ($team != null)
$tournament = Tournament::fromId($team->getTournamentId());
$has_error = false;
$error_message = null;
@ -208,8 +209,10 @@ class SendDocument
}
}
$documents = $user->getAllDocuments($team->getTournamentId());
if ($team->isSelectedForFinal())
$documents_final = $user->getAllDocuments($FINAL->getId());
if ($team != null) {
$documents = $user->getAllDocuments($team->getTournamentId());
if ($team->isSelectedForFinal())
$documents_final = $user->getAllDocuments($FINAL->getId());
}
require_once "server_files/views/mon_compte.php";