diff --git a/workflow/engine/src/ProcessMaker/Services/Api/Light.php b/workflow/engine/src/ProcessMaker/Services/Api/Light.php index 398014e30..11750a31c 100644 --- a/workflow/engine/src/ProcessMaker/Services/Api/Light.php +++ b/workflow/engine/src/ProcessMaker/Services/Api/Light.php @@ -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 {