From 6f02af6d8533ba6f03210d7c03ae873aed0370fb Mon Sep 17 00:00:00 2001 From: x2000coic Date: Wed, 22 Sep 2004 18:11:00 +0000 Subject: [PATCH] =?utf8?q?correction=20bug=20:=20requete=20sql=20incorrect?= =?utf8?q?e=20(t=E2che=20#77)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- htdocs/recovery.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/recovery.php b/htdocs/recovery.php index dbfc819..eaaf267 100644 --- a/htdocs/recovery.php +++ b/htdocs/recovery.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: recovery.php,v 1.4 2004-09-05 12:54:18 x2000habouzit Exp $ + $Id: recovery.php,v 1.5 2004-09-22 18:11:00 x2000coic Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -61,7 +61,7 @@ if (isset($_REQUEST['login']) and isset($_REQUEST['birth'])) { // on recupere les emails sans tenir comptes du flags active (ni des autres) // sauf qu'il ne faut pas prendre la ligne qui possède l'éventuel appel // au filtre personnel (ligne dont le num = 0) - $result=$globals->db->query("select email from emails where uid = $uid and num != 0"); + $result=$globals->db->query("select email from emails where uid = $uid and NOT FIND_IN_SET('filter', flags)"); $emails = array(); while(list($email) = mysql_fetch_row($result)) { @@ -69,8 +69,8 @@ if (isset($_REQUEST['login']) and isset($_REQUEST['birth'])) { } mysql_free_result($result); $emails = implode(',', $emails); - - require("diogenes.mailer.inc.php"); + + require("diogenes.mailer.inc.php"); $mymail = new DiogenesMailer('Gestion des mots de passe ', $emails, 'Ton certificat d\'authentification', false); -- 2.1.4