From: Stéphane Jacob Date: Thu, 2 Dec 2010 14:18:56 +0000 (+0100) Subject: Do not notify death to a deceased user (Closes #1354). X-Git-Tag: xorg/1.0.2~109 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3e2fb1877a25bb0610cd125f891900d6c80e3a8a;p=platal.git Do not notify death to a deceased user (Closes #1354). Signed-off-by: Stéphane Jacob --- diff --git a/bin/cron/profile_modification.php b/bin/cron/profile_modification.php index 252e392..ef7cbdf 100755 --- a/bin/cron/profile_modification.php +++ b/bin/cron/profile_modification.php @@ -31,7 +31,7 @@ $res = XDB::iterator('SELECT p.hrpid, pm.pid, a.full_name, pm.field, pm.oldText INNER JOIN profile_display AS pd ON (pm.pid = pd.pid) INNER JOIN account_profiles AS ap ON (pm.pid = ap.pid AND FIND_IN_SET(\'owner\', ap.perms)) INNER JOIN aliases AS al ON (ap.uid = al.uid AND FIND_IN_SET(\'bestalias\', al.flags)) - WHERE pm.type = \'third_party\' + WHERE pm.type = \'third_party\' AND pm.field != \'deathdate\' ORDER BY pm.pid, pm.field, pm.timestamp'); if ($res->total() > 0) {