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;