From: x2000habouzit Date: Tue, 2 Nov 2004 11:34:17 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~1089 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e64e2770017738f7c95a34385a0cb92abef226ea;p=platal.git backport --- diff --git a/scripts/cron/send_nl.php b/scripts/cron/send_nl.php index 1b37352..79d32e6 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.4 2004-11-02 11:32:01 x2000habouzit Exp $ + $Id: send_nl.php,v 1.5 2004-11-02 11:34:17 x2000habouzit Exp $ ***************************************************************************/ require('./connect.db.inc.php'); @@ -59,7 +59,7 @@ while(true) { $sent[] = "user_id='$uid'"; $nl->sendTo($prenom,$nom,$forlife,$sexe,$html=='html'); } - mysql_free_result($res); + mysql_free_result($sql); mysql_query("UPDATE newsletter_ins SET last=$id WHERE ".implode(' OR ',$sent)); sleep(60); }