Browse Source

Correction bug id_etablissement liste emails utilisateurs

master
keun 8 years ago
parent
commit
e54274bcfd
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      backend/controllers/UserController.php

+ 5
- 3
backend/controllers/UserController.php View File

@@ -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,

Loading…
Cancel
Save