check if report exists

This commit is contained in:
denisdulici 2020-01-28 16:13:00 +03:00
parent 33ae57f4d5
commit a7dce684fc

View File

@ -31,6 +31,10 @@ class Reports extends Controller
$class = Utility::getClassInstance($report, false);
if (empty($class)) {
continue;
}
$ttl = 3600 * 6; // 6 hours
$totals[$report->id] = Cache::remember('reports.totals.' . $report->id, $ttl, function () use ($class) {