|
|
@@ -157,12 +157,14 @@ PS : Si vous ne souhaitez plus recevoir ces emails, rendez-vous dans votre compt |
|
|
|
->select('*') |
|
|
|
->from('user, user_etablissement') |
|
|
|
->where('user.id = user_etablissement.id_user') |
|
|
|
->andWhere('user_etablissement.id_etablissement = '.Yii::$app->user->identity->id) |
|
|
|
->andWhere('user_etablissement.id_etablissement = '.Yii::$app->user->identity->id_etablissement) |
|
|
|
->all() ; |
|
|
|
|
|
|
|
$arr_users = [] ; |
|
|
|
foreach($users as $u) |
|
|
|
$arr_users[] = $u->email ; |
|
|
|
foreach($users as $u) { |
|
|
|
if(isset($u->email)) |
|
|
|
$arr_users[] = $u->email ; |
|
|
|
} |
|
|
|
|
|
|
|
return $this->render('liste_mails', [ |
|
|
|
//'model' => $model, |