From: Stéphane Jacob Date: Thu, 28 Apr 2011 15:04:49 +0000 (+0200) Subject: Fixes display of corps in bounce list (Closes #1479). X-Git-Tag: xorg/1.1.1~53 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=167c900774133bb614601aeb981ed3bece27aa49;p=platal.git Fixes display of corps in bounce list (Closes #1479). Signed-off-by: Stéphane Jacob --- diff --git a/modules/email.php b/modules/email.php index de8af94..15d1e31 100644 --- a/modules/email.php +++ b/modules/email.php @@ -872,10 +872,11 @@ class EmailModule extends PLModule $csv = fopen('php://output', 'w'); fputcsv($csv, array('nom', 'promo', 'bounces', 'nbmails', 'url', 'corps', 'job', 'networking'), ';'); + $corpsList = DirEnum::getOptions(DirEnum::CURRENTCORPS); foreach ($broken_user_list as $uid => $mails) { $profile = Profile::get($uid); $corps = $profile->getCorps(); - $current_corps = ($corps && $corps->current) ? $corps->current : ''; + $current_corps = ($corps && $corps->current) ? $corpsList[$corps->current] : ''; $jobs = $profile->getJobs(); $companies = array(); foreach ($jobs as $job) {