#11871 Fixed SQL query

This commit is contained in:
Jorge Rincon 2023-08-16 13:46:19 +02:00
parent a12ea4f44c
commit c7809b429f
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ class DiscoveryTaskList extends HTML
$recon_tasks = db_get_all_rows_sql( $recon_tasks = db_get_all_rows_sql(
sprintf( sprintf(
'SELECT tasks.*, apps.section AS section, apps.short_name AS short_name 'SELECT tasks.*, apps.section AS section, apps.short_name AS short_name
FROM trecon_task FROM trecon_task tasks
LEFT JOIN tdiscovery_apps apps ON tasks.id_app = apps.id_app LEFT JOIN tdiscovery_apps apps ON tasks.id_app = apps.id_app
WHERE id_group IN (%s) AND WHERE id_group IN (%s) AND
(type IN (%s) OR section = "%s")', (type IN (%s) OR section = "%s")',