X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fhomonyms.php;h=3d27903b45bdf622436f32d46849c0889dc6e8e7;hb=ca5367b747459b0984054e2f859ffdf69bbe803c;hp=068d3b2c46689e7fa06fb530c52de53cba5439b9;hpb=337a6acfd36f49749150b67aed97595cd291ad38;p=platal.git diff --git a/bin/cron/homonyms.php b/bin/cron/homonyms.php index 068d3b2..3d27903 100755 --- a/bin/cron/homonyms.php +++ b/bin/cron/homonyms.php @@ -1,7 +1,7 @@ #!/usr/bin/php5 -q 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'] . '.polytechnique.org'); + WHERE h.hrmid = {?}', + User::makeHomonymHrmid($old['email'])); $hruids = $res->fetchColumn(); $homonym = User::getSilent($old['uid']);