From: x2002marichez Date: Sat, 4 Dec 2004 22:44:25 +0000 (+0000) Subject: syntax error + dinstinction on sex X-Git-Tag: xorg/old~736 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f374f6037115b46aa507f2634467a1c75480d565;p=platal.git syntax error + dinstinction on sex --- 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);