}
}
# vote pour des jeux (autorisé même lorsque les inscriptions sont terminées)
- else if (isset($_POST['set_jeux_joues']) && $this->participant->existe())
+ else if (isset($_POST['set_jeux_joues']) && $this->participant->existe() && !$config->get("inscription_terminees"))
{
$votes = $_POST['votes'];
if (!$votes)
pg_query("BEGIN");
$res = pg_query_params("SELECT id FROM jeux WHERE nom = $1", array($jeu));
if ($id = pg_fetch_object($res))
- array_unshift($votes, $id->id);
+ if (!in_array($id->id, $votes))
+ array_unshift($votes, $id->id);
}
}