Merged in bugfix/PMCORE-3401 (pull request #8212)

PMCORE-3401

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Andrea Adamczyk
2021-10-11 21:14:13 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -150,7 +150,7 @@ class Light extends Api
);
$response = array();
foreach ($data as $key => $counterList) {
if (isset($structure[$counterList['item']])) {
if (isset($structure[isset($counterList['item']) ? $counterList['item'] : null])) {
$name = $structure[$counterList['item']];
$response[$name] = $counterList['count'];
} else {