Skip to content

Commit

Permalink
fix: only first reciever gets the mail
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Mar 27, 2024
1 parent 54a8306 commit 9b40cae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/php/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function emailSummary($email, $interval)
// Get report (fetch from cache if any)
if ($this->getCachedResult($interval) !== false) {
$report = $this->getCachedResult($interval);
$hasContent = !empty($report) ? true : false;
} else {
[$rendered, $hasContent] = $this->renderReport($from, $to, true);
$report = self::$resultCache[$interval] = $rendered;
Expand Down

0 comments on commit 9b40cae

Please sign in to comment.