X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fcron%2Fhomonyms.php;h=1c2177bc556ab70defad0eea282b92b34d9ca833;hb=fdb709ba913c37b6e9d9ffd38e875ad150effa4e;hp=cfc5b0d829998b91ee2be3b1c538121e62ca0bc7;hpb=f036c8966e64d9f2bb3923bbeb278353bc7e1083;p=platal.git diff --git a/bin/cron/homonyms.php b/bin/cron/homonyms.php index cfc5b0d..1c2177b 100755 --- a/bin/cron/homonyms.php +++ b/bin/cron/homonyms.php @@ -33,8 +33,8 @@ 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 hrmid = {?}', - 'h.' . $old['email'] . '.' . Platal::globals()->mail->domain); + WHERE h.hrmid = {?}', + User::makeHomonymHrmid($old['email'])); $hruids = $res->fetchColumn(); $homonym = User::getSilent($old['uid']);