1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Fix default for usage params

This commit is contained in:
Jake Barnby 2022-08-25 23:51:59 +12:00
parent b12fc12caa
commit e25fbd1c2a

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);