From: Florent Bruneau Date: Thu, 1 Jul 2010 13:46:47 +0000 (+0200) Subject: Fix user selection when sending the newsletter. X-Git-Tag: xorg/1.0.1~15^2~80 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1f46b96184c89f5e703f965c6391d5a3024706fb;p=platal.git Fix user selection when sending the newsletter. Signed-off-by: Florent Bruneau --- diff --git a/include/massmailer.inc.php b/include/massmailer.inc.php index a6dc702..808297e 100644 --- a/include/massmailer.inc.php +++ b/include/massmailer.inc.php @@ -203,7 +203,7 @@ abstract class MassMailer public function sendToAll() { $this->setSent(); - $query = XDB::format($this->getAllRecipients(), $this->id()) . ' LIMIT 60'; + $query = XDB::format($this->getAllRecipients(), $this->_id) . ' LIMIT 60'; $emailsCount = 0; while (true) { @@ -216,6 +216,7 @@ abstract class MassMailer $this->sendTo($user, $hash); ++$emailsCount; } + print_r($sent); XDB::execute("UPDATE {$this->_subscriptionTable} SET last = {?} WHERE " . implode(' OR ', $sent), $this->_id);