X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fhomonyms.php;h=fd7bb480ff1098a15be8fef40bed322d2101e497;hb=173ff0bdf41db90ee0995e0c3bf844bf2151d0e6;hp=f70ee3054ae997450bd88fdb2b08d926dbf2cb9e;hpb=d82359a556779137f8a90d0312b3098a2db6f482;p=platal.git diff --git a/bin/cron/homonyms.php b/bin/cron/homonyms.php index f70ee30..fd7bb48 100755 --- a/bin/cron/homonyms.php +++ b/bin/cron/homonyms.php @@ -21,20 +21,20 @@ ***************************************************************************/ /** - * Requires destruction of aliases: a first notification 10 days before + * Requires destruction of aliases: a first notification 7 days before * destruction, a second on the date. */ require 'connect.db.inc.php'; $resRobot = XDB::iterator("SELECT uid, email, expire FROM email_source_account - WHERE (expire = NOW() + INTERVAL 7 DAY OR expire <= NOW())"); + WHERE expire <= NOW() + INTERVAL 7 DAY"); while ($old = $resRobot->next()) { $res = XDB::query('SELECT a.hruid FROM homonyms_list AS h INNER JOIN accounts AS a ON (h.uid = a.uid) WHERE h.hrmid = {?}', - User::makeHomonymHrmid($old['email']); + User::makeHomonymHrmid($old['email'])); $hruids = $res->fetchColumn(); $homonym = User::getSilent($old['uid']);