Skip to content
Snippets Groups Projects
Commit 5999a089 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction #49873

parent 576d81dd
No related branches found
No related tags found
No related merge requests found
...@@ -285,10 +285,11 @@ class IndicateurController extends AbstractController ...@@ -285,10 +285,11 @@ class IndicateurController extends AbstractController
if (!in_array($intervenantId, $intervenantsIds)) { if (!in_array($intervenantId, $intervenantsIds)) {
continue; continue;
} }
$emailPro = $indicRes['intervenant-email-pro'];
$email = $indicRes['intervenant-email-perso'] ?: $indicRes['intervenant-email-pro']; $email = $indicRes['intervenant-email-perso'] ?: $indicRes['intervenant-email-pro'];
if ($email) { if ($email) {
$emails[$email] = $indicRes['intervenant-nom'] . ' ' . $indicRes['intervenant-prenom']; $emails[$email] = $indicRes['intervenant-nom'] . ' ' . $indicRes['intervenant-prenom'];
if ($email != $emailPro) { if ($email != $emailPro && !empty($emailPro)) {
$emailsPro[$emailPro] = $indicRes['intervenant-nom'] . ' ' . $indicRes['intervenant-prenom']; $emailsPro[$emailPro] = $indicRes['intervenant-nom'] . ' ' . $indicRes['intervenant-prenom'];
} }
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment