backport ... night of the NL ? i don't hope so
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 1 Feb 2005 21:58:41 +0000 (21:58 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:01 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-20
   ahem : fmt has moved

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-434

bin/newsletter.send.php

index 2f85a71..94d7199 100755 (executable)
@@ -52,7 +52,7 @@ while(true) {
     if (!$res->total()) { exit; }
 
     $sent = Array();
-    while (list($uid, $fmt, $bestalias, $prenom, $nom, $sexe) = $res->next()) {
+    while (list($uid, $bestalias, $prenom, $nom, $sexe, $fmt) = $res->next()) {
        $sent[] = "user_id='$uid'";
        $nl->sendTo($prenom, $nom, $bestalias, $sexe, $fmt=='html');
     }