projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In survey results, clusters all empty comments for free text
[platal.git]
/
include
/
massmailer.inc.php
diff --git
a/include/massmailer.inc.php
b/include/massmailer.inc.php
index
f9cc381
..
a6dc702
100644
(file)
--- a/
include/massmailer.inc.php
+++ b/
include/massmailer.inc.php
@@
-204,14
+204,17
@@
abstract class MassMailer
{
$this->setSent();
$query = XDB::format($this->getAllRecipients(), $this->id()) . ' LIMIT 60';
{
$this->setSent();
$query = XDB::format($this->getAllRecipients(), $this->id()) . ' LIMIT 60';
+ $emailsCount = 0;
+
while (true) {
$users = User::getBulkUsersWithUIDs(XDB::fetchColumn($query));
if (count($users) == 0) {
while (true) {
$users = User::getBulkUsersWithUIDs(XDB::fetchColumn($query));
if (count($users) == 0) {
- return;
+ return
$emailsCount
;
}
foreach ($users as $user) {
$sent[] = XDB::format('uid = {?}', $user->id());
$this->sendTo($user, $hash);
}
foreach ($users as $user) {
$sent[] = XDB::format('uid = {?}', $user->id());
$this->sendTo($user, $hash);
+ ++$emailsCount;
}
XDB::execute("UPDATE {$this->_subscriptionTable}
SET last = {?}
}
XDB::execute("UPDATE {$this->_subscriptionTable}
SET last = {?}
@@
-219,6
+222,7
@@
abstract class MassMailer
sleep(60);
}
sleep(60);
}
+ return $emailsCount;
}
abstract protected function assignData(&$smarty);
}
abstract protected function assignData(&$smarty);