correction of some regressions
This commit is contained in:
@ -67,15 +67,22 @@ function verifPeripetieAvion()
|
||||
$db->query($query);
|
||||
$avions = $db->result->fetch_all(MYSQLI_ASSOC);
|
||||
$avionsId = array_column($avions, 'expeMail', 'idAvion');
|
||||
print_r($avionsId);
|
||||
//print_r($avionsId);
|
||||
$flag = false;
|
||||
foreach($peripeties as $peripetie)
|
||||
{
|
||||
print "Péripétie " . $peripetie["idAP"] . EOLH;
|
||||
//print "Péripétie " . $peripetie["idAP"] . EOLH;
|
||||
$idAvion = $peripetie["idAvion"];
|
||||
if ( empty($avionsId[$idAvion]) )
|
||||
{
|
||||
print "Péripétie " . $peripetie["idAP"] . " n'a pas d'avion poème idAvion=>" . $idAvion . EOLH;
|
||||
$flag = true;
|
||||
}
|
||||
|
||||
}
|
||||
if ( ! $flag )
|
||||
{
|
||||
print "Aucune erreur détectée";
|
||||
}
|
||||
$db->close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user