Surveillance : Chaine email(s) original

This commit is contained in:
Michael RICOIS 2016-09-06 16:46:25 +02:00
parent 788421dca0
commit 56bb17e306

View File

@ -163,8 +163,8 @@ class SurveillanceController extends Zend_Controller_Action
// --- Vérification des emails
$emails = explode(';', $email);
$emailsValid = true;
foreach ( $emails as $email ) {
if ( !$validateur->isValid($email) ) {
foreach ( $emails as $e ) {
if ( !$validateur->isValid($e) ) {
$emailsValid = false;
break;
}
@ -178,7 +178,7 @@ class SurveillanceController extends Zend_Controller_Action
$delete = true;
}
$ws = new WsScores();
$set = $ws->setSurveillance($siret, $emails, $ref, $source, $delete, $encours);
$set = $ws->setSurveillance($siret, $email, $ref, $source, $delete, $encours);
if ($set) {
if ($delete) { $msg = "Suppression surveillance $source"; }
else { $msg = "Mise sous surveillance $source"; }