Correction de bu getRandomEnigme
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 746aed0369
commit c44265eb10

@ -182,8 +182,9 @@ class EnigmeGateway
public function getRandomEnigme() : Enigme public function getRandomEnigme() : Enigme
{ {
$query = "SELECT * FROM Enigme $query = "SELECT * FROM Enigme
WHERE points IS NOT NULL OR points != 0 WHERE points != 0
AND tempsDeResolution IS NOT NULL OR tempsDeResolution != 0 AND tempsDeResolution != 0
AND ordre = 0
ORDER BY RANDOM() LIMIT 1"; ORDER BY RANDOM() LIMIT 1";
$this->con->executequery($query); $this->con->executequery($query);
$results = $this->con->getResults(); $results = $this->con->getResults();

Loading…
Cancel
Save