From e25fbd1c2af394ded92f92e90a4b6785e3f1f52f Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 25 Aug 2022 23:51:59 +1200 Subject: [PATCH] Fix default for usage params --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);