Browse Source

Correction bug id_etablissement liste emails utilisateurs

prodstable
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

->select('*') ->select('*')
->from('user, user_etablissement') ->from('user, user_etablissement')
->where('user.id = user_etablissement.id_user') ->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() ; ->all() ;
$arr_users = [] ; $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', [ return $this->render('liste_mails', [
//'model' => $model, //'model' => $model,

Loading…
Cancel
Save