From 9c5d8b943d4391034f301e14ef1a3aabb0f4c53d Mon Sep 17 00:00:00 2001 From: Baptiste Date: Mon, 1 Aug 2022 11:20:23 +0200 Subject: [PATCH] arreter l'epreuve --- com_ville.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_ville.php b/com_ville.php index 99a5c15..286919e 100644 --- a/com_ville.php +++ b/com_ville.php @@ -23,7 +23,7 @@ if(isset($_GET['team']) AND !empty($_GET['team'])) $reqsession = $db->prepare("SELECT state, time_begin FROM ville WHERE session = ?"); $reqsession->execute(array($session)); $rs = $reqsession -> fetchAll(PDO::FETCH_ASSOC); - if($rs[0]['state']<1 OR $rs[0]['state']>2 ) { + if($rs[0]['state']!=1) { header('Location: error.php'); } } else {