From f374f6037115b46aa507f2634467a1c75480d565 Mon Sep 17 00:00:00 2001 From: x2002marichez Date: Sat, 4 Dec 2004 22:44:25 +0000 Subject: [PATCH] syntax error + dinstinction on sex --- scripts/cron/send_nl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cron/send_nl.php b/scripts/cron/send_nl.php index fe76a8f..6ef4160 100755 --- a/scripts/cron/send_nl.php +++ b/scripts/cron/send_nl.php @@ -19,7 +19,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: send_nl.php,v 1.9 2004-12-02 22:29:20 x2002marichez Exp $ + $Id: send_nl.php,v 1.10 2004-12-04 22:44:25 x2002marichez Exp $ ***************************************************************************/ require('./connect.db.inc.php'); @@ -48,10 +48,10 @@ $nl->setSent(); while(true) { $sql = mysql_query("SELECT ni.user_id,ni.pref, a.alias, - u.prenom, IF(u.epouse='', u.nom, u.epouse) + u.prenom, IF(u.epouse='', u.nom, u.epouse), FIND_IN_SET('femme',u.flags) FROM newsletter_ins AS ni INNER JOIN auth_user_md5 AS u USING(user_id) - INNER JOIN aliases AS a ON(u.user_id=a.id AND FIND_IN_SET('bestalias',a.flags) + INNER JOIN aliases AS a ON(u.user_id=a.id AND FIND_IN_SET('bestalias',a.flags)) WHERE ni.last<$id LIMIT 60"); if(!mysql_num_rows($sql)) exit(0); -- 2.1.4