X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Femail.php;fp=modules%2Femail.php;h=e7f1e28d6566a5cfef58ed1777aa9fb22364788d;hb=bc0276a2d79d88a56656514fe24bd427c0ef3b88;hp=640233722a752c332402f7006a8a95d08e4ba348;hpb=29d68ff3edf3369886ff840a3780488e8049eccd;p=platal.git diff --git a/modules/email.php b/modules/email.php index 6402337..e7f1e28 100644 --- a/modules/email.php +++ b/modules/email.php @@ -891,8 +891,7 @@ class EmailModule extends PLModule $corpsList = DirEnum::getOptions(DirEnum::CURRENTCORPS); foreach ($broken_user_list as $uid => $mails) { $profile = Profile::get($uid); - $corps = $profile->getCorps(); - $current_corps = ($corps && $corps->current) ? $corpsList[$corps->current] : ''; + $current_corps = $profile->getCorpsName(); $jobs = $profile->getJobs(); $companies = array(); foreach ($jobs as $job) {