fix indentation in siteemailsummaryhandler
This commit is contained in:
parent
f31db669b0
commit
10bb94807b
@ -70,27 +70,27 @@ class SiteEmailSummaryHandler extends QueueHandler
|
|||||||
|
|
||||||
function handle($object)
|
function handle($object)
|
||||||
{
|
{
|
||||||
$qm = QueueManager::get();
|
$qm = QueueManager::get();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Enqueue a summary for all users
|
// Enqueue a summary for all users
|
||||||
|
|
||||||
$user = new User();
|
$user = new User();
|
||||||
$user->find();
|
$user->find();
|
||||||
|
|
||||||
while ($user->fetch()) {
|
while ($user->fetch()) {
|
||||||
try {
|
try {
|
||||||
$qm->enqueue($user->id, 'usersum');
|
$qm->enqueue($user->id, 'usersum');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
common_log(LOG_WARNING, $e->getMessage());
|
common_log(LOG_WARNING, $e->getMessage());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
common_log(LOG_WARNING, $e->getMessage());
|
common_log(LOG_WARNING, $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user