|
|
@@ -52,7 +52,7 @@ if (core::ifPost("from") AND core::getPost("from") == "lottery-import-inscriptio
|
|
|
|
|
|
foreach ($returnXlsx as $key => $ligne) {
|
|
|
if($key > 0){
|
|
|
- $salarie = salaries::get_salarieByLoginId(strtoupper($ligne[2]));
|
|
|
+ $salarie = salaries::getSalarieByLoginId(strtoupper($ligne[2]));
|
|
|
|
|
|
if(isset($salarie["id"])){
|
|
|
$temp["id_salarie"] = $salarie["id"];
|
|
|
@@ -73,7 +73,8 @@ if (core::ifPost("from") AND core::getPost("from") == "lottery-import-inscriptio
|
|
|
}
|
|
|
|
|
|
$verifDossierLottery = lottery::searchDossier($temp["id_dossier"]);
|
|
|
- if($verifDossierLottery != core::getPost("lottery")){
|
|
|
+
|
|
|
+ if($verifDossierLottery != core::getPost("lottery") AND $verifDossierLottery != NULL){
|
|
|
alert::recError("ERREUR TECHNIQUE : ". $temp["prenom"] . " " . $temp["nom"] . " est déjà inscrit sur un autre tirage au sort");
|
|
|
}
|
|
|
else if($verifDossierLottery == NULL){
|