diff --git a/workflow/engine/src/ProcessMaker/Services/Api/Light.php b/workflow/engine/src/ProcessMaker/Services/Api/Light.php index da841a043..5ae04b00a 100644 --- a/workflow/engine/src/ProcessMaker/Services/Api/Light.php +++ b/workflow/engine/src/ProcessMaker/Services/Api/Light.php @@ -49,8 +49,10 @@ class Light extends Api ); $response = array(); foreach ($data as $counterList) { - $name = $structure[$counterList['item']]; - $response[$name] = $counterList['count']; + if(isset($structure[$counterList['item']])){ + $name = $structure[$counterList['item']]; + $response[$name] = $counterList['count']; + } } return $response; }