diff --git a/pandora_console/include/functions_cron.php b/pandora_console/include/functions_cron.php
index aebeeb7e42..f4c7597a08 100644
--- a/pandora_console/include/functions_cron.php
+++ b/pandora_console/include/functions_cron.php
@@ -552,11 +552,24 @@ function cron_list_table()
continue;
}
- $agents_id = $args[1];
- $id_group = $args[2];
+ if (empty($args[0]) === false || (string) $args[1] !== '0') {
+ $agents_id = $args[1];
+ } else {
+ if (empty($args[2]) === false) {
+ $agents_id = sprintf(
+ '(%s) %s',
+ __('regex'),
+ $args[2]
+ );
+ } else {
+ $agents_id = __('None');
+ }
+ }
+
+ $id_group = $args[3];
$report_per_agent = $args[0];
- $report_name = $args[3];
- $email = $args[4];
+ $report_name = $args[4];
+ $email = $args[5];
$data[2] .= '
- '.__('Template').': ';
$data[2] .= '';
$data[2] .= $template['name'].'';