test 4 verificaiton d'un index de vote invalide
+ correction php
This commit is contained in:
@@ -57,7 +57,7 @@ foreach ($votes as $vote) {
|
||||
foreach ( $vote as $candidat => $mention ) {
|
||||
if ($mention > $default_mention or $mention < 0) {
|
||||
$mention = $default_mention;
|
||||
$warnings.append("index de mention invalide, soit la liste des mentions est erronnée soit la mention dans le vote est erronée");
|
||||
array_push($warnings,"index de mention invalide, soit la liste des mentions est erronnée soit la mention dans le vote est erronée");
|
||||
}
|
||||
if ( array_key_exists($candidat,$collect)) {
|
||||
if ( array_key_exists($mention,$collect[$candidat])) {
|
||||
|
||||
Reference in New Issue
Block a user