Fix default for usage params
This commit is contained in:
parent
b12fc12caa
commit
e25fbd1c2a
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ App::shutdown()
|
||||||
&& !empty($route->getLabel('sdk.namespace', null))
|
&& !empty($route->getLabel('sdk.namespace', null))
|
||||||
) { // Don't calculate console usage on admin mode
|
) { // Don't calculate console usage on admin mode
|
||||||
$metric = $route->getLabel('usage.metric', '');
|
$metric = $route->getLabel('usage.metric', '');
|
||||||
$usageParams = $route->getLabel('usage.params', '');
|
$usageParams = $route->getLabel('usage.params', []);
|
||||||
|
|
||||||
if (!empty($metric)) {
|
if (!empty($metric)) {
|
||||||
$usage->setParam($metric, 1);
|
$usage->setParam($metric, 1);
|
||||||
|
|
Loading…
Reference in a new issue