X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fregister.inc.php;h=04d56a6b354af1c83273c0a3ad68c1b7336291aa;hb=7192cdc512c54b21c71c9fc879a5ce39716ffa75;hp=638df1350ba51e5ce5acd0f00a305765525b14a0;hpb=bf273d6a51545b443bf2c97c9ef1bfdcf6ab3013;p=platal.git diff --git a/include/register.inc.php b/include/register.inc.php index 638df13..04d56a6 100644 --- a/include/register.inc.php +++ b/include/register.inc.php @@ -185,7 +185,6 @@ function create_aliases (&$sub) if ( $res->numRows() ) { list($h_id, $h_type, $expire) = $res->fetchOneRow(); - $res->free(); if ( $h_type != 'homonyme' and empty($expire) ) { XDB::execute('UPDATE aliases SET expire=ADDDATE(NOW(),INTERVAL 1 MONTH) WHERE alias={?}', $mailorg); @@ -248,7 +247,7 @@ function send_alert_mail($state, $body) require_once("diogenes/diogenes.hermes.inc.php"); $mailer = new HermesMailer(); $mailer->setFrom("webmaster@polytechnique.org"); - $mailer->addTo("hotliners@polytechnique.org"); + $mailer->addTo("hotliners@staff.polytechnique.org"); $mailer->setSubject("ALERTE LORS DE L'INSCRIPTION de " . $state['prenom'] . ' ' . $state['nom'] . '(' . $promo . ')'); $mailer->setTxtBody($body