diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 796f3a56d9..d0bbcb7cb5 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -761,7 +761,7 @@ class DiscoveryTaskList extends HTML $data[3] = __('Manual'); } - if ($task['id_recon_script'] == 0 || $ipam === true && $task['type'] !== '15') { + if (($task['id_recon_script'] == 0 || $ipam === true) && (int) $task['type'] !== DISCOVERY_EXTENSION) { $data[4] = ui_print_truncate_text($subnet, 50, true, true, true, '[…]'); } else { $data[4] = '-'; @@ -998,7 +998,7 @@ class DiscoveryTaskList extends HTML && $task['type'] != DISCOVERY_CLOUD_AWS_RDS && $task['type'] != DISCOVERY_CLOUD_AWS_S3 ) { - if (check_acl($config['id_user'], 0, 'MR') && (int) $task['type'] !== 15) { + if (check_acl($config['id_user'], 0, 'MR') && (int) $task['type'] !== DISCOVERY_EXTENSION) { $data[9] .= ''; $data[9] .= html_print_image( 'images/web@groups.svg',