check if report exists
This commit is contained in:
parent
33ae57f4d5
commit
a7dce684fc
@ -31,6 +31,10 @@ class Reports extends Controller
|
|||||||
|
|
||||||
$class = Utility::getClassInstance($report, false);
|
$class = Utility::getClassInstance($report, false);
|
||||||
|
|
||||||
|
if (empty($class)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$ttl = 3600 * 6; // 6 hours
|
$ttl = 3600 * 6; // 6 hours
|
||||||
|
|
||||||
$totals[$report->id] = Cache::remember('reports.totals.' . $report->id, $ttl, function () use ($class) {
|
$totals[$report->id] = Cache::remember('reports.totals.' . $report->id, $ttl, function () use ($class) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user