From: Thomas Minvielle Date: Tue, 24 Dec 2013 17:32:05 +0000 (+0100) Subject: Removes the dead from the lost admin page. X-Git-Tag: xorg/1.1.11~14 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ca9cf2359f2f0e86a543aae34eb7bfee06938ef5;p=platal.git Removes the dead from the lost admin page. --- diff --git a/modules/email.php b/modules/email.php index 09d840a..772c121 100644 --- a/modules/email.php +++ b/modules/email.php @@ -791,7 +791,8 @@ class EmailModule extends PLModule AND er.type != \'imap\' AND er.type != \'homonym\') LEFT JOIN account_profiles AS ap ON (ap.uid = a.uid AND FIND_IN_SET(\'owner\', ap.perms)) LEFT JOIN profile_display AS pd ON (ap.pid = pd.pid) - WHERE a.state = \'active\' AND er.redirect IS NULL AND FIND_IN_SET(\'mail\', at.perms) + LEFT JOIN profiles AS p ON (ap.pid = p.pid) + WHERE a.state = \'active\' AND er.redirect IS NULL AND FIND_IN_SET(\'mail\', at.perms) AND p.deathdate IS NULL GROUP BY a.uid ORDER BY pd.promo, a.hruid')); }