From 1f46b96184c89f5e703f965c6391d5a3024706fb Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 1 Jul 2010 15:46:47 +0200 Subject: [PATCH] Fix user selection when sending the newsletter. Signed-off-by: Florent Bruneau --- include/massmailer.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.1.4