Surveillance : Chaine email(s) original
This commit is contained in:
parent
788421dca0
commit
56bb17e306
@ -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"; }
|
||||
|
Loading…
Reference in New Issue
Block a user