diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php index 8f3dcda0..c98b22f3 100644 --- a/WEB/Controller/PartieGateway.php +++ b/WEB/Controller/PartieGateway.php @@ -283,8 +283,12 @@ class PartieGateway ) ); $results = $this->con->getResults(); - $row = $results[0]; - return $row['etat']; + foreach ($results as $row){ + if($row['etat'] == 1){ + return 1; + } + } + return 0; } public function showAll(): void {