mysql_query("DELETE FROM jeux_choisis WHERE participant_id = " . $le_participant->info->id);\r
\r
# traite les trois premiers votes\r
- for ($i = 0; $i < count($votes) && $i < $NB_VOTES_JEUX ; $i++)\r
+ for ($i = 0; $i < count($votes) && $i < $config->get('nb_votes_jeux'); $i++)\r
{\r
mysql_query("INSERT INTO jeux_choisis (participant_id, jeu_id) VALUES (".$le_participant->info->id.", ".(int)$votes[$i].")");\r
}\r