X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fmarketing.php;h=23593c073fb8475921ad639d9ec3b16ac48fa50a;hb=d93451de19f7e7831e739a090fbbf8543608e978;hp=997865ed8087ef90efb2e3f0c19ee4feed72e7ac;hpb=08fa70684fd1332178cddb6b318151335fb4506c;p=platal.git diff --git a/modules/marketing.php b/modules/marketing.php index 997865e..23593c0 100644 --- a/modules/marketing.php +++ b/modules/marketing.php @@ -179,7 +179,7 @@ class MarketingModule extends PLModule $res = Xdb::query("SELECT u.nom, u.prenom, u.promo, FIND_IN_SET('femme', u.flags) AS sexe, u.deces = '0000-00-00' AS alive, a.alias AS forlife, b.alias AS bestalias, - e.email, e.last + IF(e.email IS NOT NULL, e.email, IF(FIND_IN_SET('googleapps', u.mail_storage), 'googleapps', NULL)) AS email, e.last FROM auth_user_md5 AS u INNER JOIN aliases AS a ON (a.id = u.user_id AND a.type = 'a_vie') INNER JOIN aliases AS b ON (b.id = u.user_id AND FIND_IN_SET('bestalias', b.flags))