From 6372f44212b30dc2d3a46ee3ca05037d03067483 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Tue, 14 Aug 2018 17:08:00 +0200 Subject: [PATCH] Added some docs --- pandora_console/include/functions_events.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index a1e29b98eb..0d496bf9c4 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -4241,6 +4241,13 @@ function events_get_sql_order($sort_field = "timestamp", $sort = "DESC", $group_ return "ORDER BY $sort_field_translated $dir"; } +/** + * SQL left join of event queries to handle secondary groups + * + * @param string Table to see if is metaconsole or not + * + * @return string With the query. + */ function events_get_secondary_groups_left_join($table) { if ($table == 'tevento') { return "LEFT JOIN tagent_secondary_group tasg ON te.id_agente = tasg.id_agent";