diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index ac608e6acf..178088195c 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -789,7 +789,7 @@ function agents_get_agents_selected($group) ); $all = array_reduce( - $all, + (empty($all) === true) ? [] : $all, function ($carry, $item) { $carry[$item['id_agente']] = $item['alias']; return $carry; diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 03070811cf..029b0d70b6 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -4225,7 +4225,7 @@ function reporting_html_availability($table, $item, $pdf=0) } else { $table_row[] = $row['agent']; $item_name = $row['availability_item']; - if ((bool) $row['compare'] === true) { + if ((bool) $row['compare'] === false) { $item_name .= ' ('.__('24 x 7').')'; }