1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-26 09:27:45 +02:00
This commit is contained in:
Yohann
2020-01-02 00:09:02 +01:00
parent 64ffcedbcc
commit 4b6d6f24ea
10 changed files with 182 additions and 64 deletions

View File

@ -436,7 +436,9 @@ class User
$req = $DB->prepare("INSERT INTO `payments`(`user`, `tournament`, `amount`, `method`, `transaction_infos`, `validation_status`) VALUES (?, ?, ?, ?, ?, ?);");
$req->execute([$this->id, $tournament->getId(), 0, PaymentMethod::getName(PaymentMethod::NOT_PAID), "L'inscription n'est pas encore payée.", ValidationStatus::getName(ValidationStatus::NOT_READY)]);
}
return $this->getPayment();
}
public function getOrganizedTournaments()
{