diff --git a/core/legacy/Statistics/SubpanelDefault.php b/core/legacy/Statistics/SubpanelDefault.php index 488884cf8..ab41c4507 100644 --- a/core/legacy/Statistics/SubpanelDefault.php +++ b/core/legacy/Statistics/SubpanelDefault.php @@ -25,11 +25,8 @@ class SubpanelDefault extends SubpanelDataQueryHandler implements StatisticsProv */ public function getData(array $query): Statistic { - $subpanel = $query['key']; - if ($subpanel === 'default' && isset($query['params']['subpanel'])) { - $subpanel = $query['params']['subpanel']; - } + $subpanel = $query['params']['subpanel'] ?? $query['key']; [$module, $id] = $this->extractContext($query); if (empty($module) || empty($id)) {