fix in get counters
This commit is contained in:
@@ -49,8 +49,10 @@ class Light extends Api
|
|||||||
);
|
);
|
||||||
$response = array();
|
$response = array();
|
||||||
foreach ($data as $counterList) {
|
foreach ($data as $counterList) {
|
||||||
$name = $structure[$counterList['item']];
|
if(isset($structure[$counterList['item']])){
|
||||||
$response[$name] = $counterList['count'];
|
$name = $structure[$counterList['item']];
|
||||||
|
$response[$name] = $counterList['count'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user