From 9b40caecfa46b89e0458b29a774cf426d77c8332 Mon Sep 17 00:00:00 2001 From: NiclasNorin Date: Wed, 27 Mar 2024 11:33:59 +0100 Subject: [PATCH] fix: only first reciever gets the mail --- source/php/Summary.php | 1 + 1 file changed, 1 insertion(+) diff --git a/source/php/Summary.php b/source/php/Summary.php index 392d218..9f774b8 100644 --- a/source/php/Summary.php +++ b/source/php/Summary.php @@ -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;