diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 6014e320ba..74be07a886 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -401,7 +401,7 @@ App::shutdown() && !empty($route->getLabel('sdk.namespace', null)) ) { // Don't calculate console usage on admin mode $metric = $route->getLabel('usage.metric', ''); - $usageParams = $route->getLabel('usage.params', ''); + $usageParams = $route->getLabel('usage.params', []); if (!empty($metric)) { $usage->setParam($metric, 1);