From: x2000habouzit Date: Tue, 2 Nov 2004 11:32:01 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~1090 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7851f471259acdbc896fa272e5c9bfba4b1709a7;p=platal.git backport --- diff --git a/scripts/cron/send_nl.php b/scripts/cron/send_nl.php index be581f3..1b37352 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.3 2004-11-02 06:34:27 x2000habouzit Exp $ + $Id: send_nl.php,v 1.4 2004-11-02 11:32:01 x2000habouzit Exp $ ***************************************************************************/ require('./connect.db.inc.php'); @@ -53,7 +53,7 @@ while(true) { INNER JOIN aliases AS a ON(u.user_id=a.id AND a.type='a_vie') WHERE ni.last<$id LIMIT 60"); - if(!mysql_num_rows($res)) exit(0); + if(!mysql_num_rows($sql)) exit(0); $sent = Array(); while(list($uid,$fmt,$forlife,$prenom,$nom,$sexe) = mysql_fetch_row($sql)) { $sent[] = "user_id='$uid'";