X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fregistrations.php;h=825ed62015fe8dec52b03087ff16b7751b15007c;hb=3424387cde6c635ff16c3b5459c4caa88bb76e2e;hp=a2c22dc012e7893a7744ba22f5dbcca949ed1030;hpb=e22ff176d83e1f4ffd866e6ad928ee247906c6a5;p=platal.git diff --git a/bin/cron/registrations.php b/bin/cron/registrations.php index a2c22dc..825ed62 100755 --- a/bin/cron/registrations.php +++ b/bin/cron/registrations.php @@ -5,7 +5,7 @@ require 'connect.db.inc.php'; $message = ''; -$res = XDB::iterRow("SELECT a.registration_date, a.hruid, s.email, GROUP_CONCAT(r.redirect SEPARATOR ', ') +$res = XDB::iterRow("SELECT DATE(a.registration_date), a.hruid, GROUP_CONCAT(DISTINCT r.redirect SEPARATOR ', ') FROM accounts AS a INNER JOIN account_profiles AS ap ON (ap.uid = a.uid AND FIND_IN_SET('owner', ap.perms)) INNER JOIN profile_display AS pd ON (ap.pid = pd.pid) @@ -52,5 +52,5 @@ $mailer->addTo($globals->register->notif); $mailer->setTxtBody($message); $mailer->send(); -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>