Skip to content

Commit

Permalink
Merge pull request #27 from helsingborg-stad/fix/only-first-reciever-…
Browse files Browse the repository at this point in the history
…gets-the-mail

fix: only first reciever gets the mail
  • Loading branch information
sebastianthulin authored Mar 31, 2024
2 parents 54a8306 + 9b40cae commit 99813ed
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 99813ed

Please sign in to comment.