bug wrt homonymes
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sat, 4 Dec 2004 23:40:02 +0000 (23:40 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:29 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-44

include/email.classes.inc.php

index 527cdda..a20a72e 100644 (file)
@@ -56,7 +56,7 @@ function check_mtic($email)
 function fix_bestalias($uid)
 {
     global $globals;
-    $res = $globals->db->query("SELECT COUNT(*) FROM aliases WHERE id='$uid' AND FIND_IN_SET('bestalias',flags)");
+    $res = $globals->db->query("SELECT COUNT(*) FROM aliases WHERE id='$uid' AND FIND_IN_SET('bestalias',flags) AND type!='homonyme'");
     list($n) = mysql_fetch_row($res);
     mysql_free_result($res);
     if ($n) {