diff --git a/app/Actions/Statistics/LoadEvents.php b/app/Actions/Statistics/LoadEvents.php index de506030..adb3ea70 100644 --- a/app/Actions/Statistics/LoadEvents.php +++ b/app/Actions/Statistics/LoadEvents.php @@ -49,7 +49,7 @@ class LoadEvents $labels = []; $statistic_type = $filter['statistic_type']; - if ($statistic_type == 'none') { + if (! $statistic_type || $statistic_type == 'none') { $statistic_type = 'gls'; }