2011-05-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_agents.php: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
0fe2823a4d
commit
52a0c8d93f
|
@ -1,3 +1,7 @@
|
||||||
|
2011-05-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php: cleaned source code style.
|
||||||
|
|
||||||
2011-05-23 Sergio Martin <sergio.martin@artica.es>
|
2011-05-23 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* images/cog_db.png
|
* images/cog_db.png
|
||||||
|
|
|
@ -205,7 +205,7 @@ function agents_get_alerts_simple ($id_agent = false, $filter = '', $options = f
|
||||||
ON talert_template_modules.id_alert_template = t4.id
|
ON talert_template_modules.id_alert_template = t4.id
|
||||||
WHERE id_agent_module in (%s) %s %s %s",
|
WHERE id_agent_module in (%s) %s %s %s",
|
||||||
$selectText, $subQuery, $where, $filter, $orderbyText);
|
$selectText, $subQuery, $where, $filter, $orderbyText);
|
||||||
break;
|
break;
|
||||||
case "oracle":
|
case "oracle":
|
||||||
$sql = sprintf ("SELECT %s
|
$sql = sprintf ("SELECT %s
|
||||||
FROM talert_template_modules
|
FROM talert_template_modules
|
||||||
|
@ -217,8 +217,9 @@ function agents_get_alerts_simple ($id_agent = false, $filter = '', $options = f
|
||||||
ON talert_template_modules.id_alert_template = t4.id
|
ON talert_template_modules.id_alert_template = t4.id
|
||||||
WHERE id_agent_module in (%s) %s %s %s",
|
WHERE id_agent_module in (%s) %s %s %s",
|
||||||
$selectText, $subQuery, $where, $filter, $orderbyText);
|
$selectText, $subQuery, $where, $filter, $orderbyText);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$alerts = db_get_all_rows_sql ($sql);
|
$alerts = db_get_all_rows_sql ($sql);
|
||||||
|
|
||||||
if ($alerts === false)
|
if ($alerts === false)
|
||||||
|
@ -291,9 +292,9 @@ function agents_get_alerts_compound ($id_agent = false, $filter = '', $options =
|
||||||
$sql = sprintf ("SELECT %s FROM talert_compound
|
$sql = sprintf ("SELECT %s FROM talert_compound
|
||||||
WHERE id_agent IN (%s) %s %s",
|
WHERE id_agent IN (%s) %s %s",
|
||||||
$selectText, $subQuery, $where, $filter);
|
$selectText, $subQuery, $where, $filter);
|
||||||
|
|
||||||
$alerts = db_get_all_rows_sql ($sql);
|
$alerts = db_get_all_rows_sql ($sql);
|
||||||
|
|
||||||
if ($alerts === false)
|
if ($alerts === false)
|
||||||
return array ();
|
return array ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue