X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Femails.inc.php;h=4fdbacf7e9bea5e1ec3b1580c64797c08f5d819c;hb=51d30e26b6ad69245d0d469f3c8b6b530c64332a;hp=f40dbe4d14cb8fede7b633f639e1a31a6a1936ef;hpb=4f731783588a91a5f7902de13228d8b0879ffecd;p=platal.git diff --git a/include/emails.inc.php b/include/emails.inc.php index f40dbe4..4fdbacf 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -147,12 +147,16 @@ function ids_from_mails(array $emails) // Look up user ids for other addresses in the email redirection list if (count($other_mails)) { + $lowerupper = array(); + foreach ($other_mails as $mail) { + $lowerupper[strtolower($mail)] = $mail; + } $res = XDB::query("SELECT email, uid FROM emails WHERE email IN {?}", $other_mails); foreach ($res->fetchAllRow() as $row) { list ($email, $uid) = $row; - $uids[$email] = $uid; + $uids[$lowerupper[strtolower($email)]] = $uid; } }