X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FEmailSummary%2Fsiteemailsummaryhandler.php;h=1c0d4997deef0276152e39b76ef54d44403f1797;hb=ad86eb78d3dc395b438d1543a36eca509f53e9d4;hp=595c3267a1c519f6edaad0ea90e33a0796b6e042;hpb=90c7ff1983a51b0883532be81be1afdd9d02a24c;p=quix0rs-gnu-social.git diff --git a/plugins/EmailSummary/siteemailsummaryhandler.php b/plugins/EmailSummary/siteemailsummaryhandler.php index 595c3267a1..1c0d4997de 100644 --- a/plugins/EmailSummary/siteemailsummaryhandler.php +++ b/plugins/EmailSummary/siteemailsummaryhandler.php @@ -70,27 +70,27 @@ class SiteEmailSummaryHandler extends QueueHandler function handle($object) { - $qm = QueueManager::get(); + $qm = QueueManager::get(); - try { - // Enqueue a summary for all users + try { + // Enqueue a summary for all users - $user = new User(); - $user->find(); + $user = new User(); + $user->find(); - while ($user->fetch()) { - try { - $qm->enqueue($user->id, 'usersum'); - } catch (Exception $e) { - common_log(LOG_WARNING, $e->getMessage()); - continue; - } - } - } catch (Exception $e) { - common_log(LOG_WARNING, $e->getMessage()); - } + while ($user->fetch()) { + try { + $qm->enqueue($user->id, 'usersum'); + } catch (Exception $e) { + common_log(LOG_WARNING, $e->getMessage()); + continue; + } + } + } catch (Exception $e) { + common_log(LOG_WARNING, $e->getMessage()); + } - return true; + return true; } }