From 17929c3474c3910e9337c62ed49bab6ed42934f0 Mon Sep 17 00:00:00 2001 From: x2002marichez Date: Thu, 2 Dec 2004 22:29:20 +0000 Subject: [PATCH] backport + merge dev branch --- scripts/cron/send_nl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cron/send_nl.php b/scripts/cron/send_nl.php index d364afe..fe76a8f 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.8 2004-11-17 11:20:14 x2000habouzit Exp $ + $Id: send_nl.php,v 1.9 2004-12-02 22:29:20 x2002marichez Exp $ ***************************************************************************/ require('./connect.db.inc.php'); @@ -58,7 +58,7 @@ while(true) { $sent = Array(); while(list($uid,$fmt,$bestalias,$prenom,$nom,$sexe) = mysql_fetch_row($sql)) { $sent[] = "user_id='$uid'"; - $nl->sendTo($prenom,$nom,$bestalias,$sexe,$html=='html'); + $nl->sendTo($prenom,$nom,$bestalias,$sexe,$fmt=='html'); } mysql_free_result($sql); mysql_query("UPDATE newsletter_ins SET last=$id WHERE ".implode(' OR ',$sent)); -- 2.1.4