#9771 change in summary json

This commit is contained in:
Daniel Cebrian 2023-04-27 17:51:57 +02:00
parent bace7231b6
commit cdffdd5995
1 changed files with 1 additions and 1 deletions

View File

@ -1456,7 +1456,7 @@ class DiscoveryTaskList extends HTML
} else if ((int) $task['type'] === DISCOVERY_EXTENSION) {
// Content.
$countSummary = 1;
if (is_array($task['stats']) === true) {
if (is_array($task['stats']) === true && array_key_first($task['stats']) === 0) {
foreach ($task['stats'] as $key => $summary) {
$table->data[$i][0] = '<b>'.__('Summary').' '.$countSummary.'</b>';
$table->data[$i][1] = '';