Fix default for usage params

This commit is contained in:
Jake Barnby committed 2022-08-25 23:51:59 +12:00
1 parent b12fc12caa
commit e25fbd1c2a
1 file changed
+1 -1
+1 -1
View File
@@ -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);