2012-04-10 Sergio Martin <sergio.martin@artica.es>

* include/functions_agents.php: Fixed an error when try
	to retrieve policy acl's without agents choosed



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5921 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-04-10 13:37:06 +00:00
parent ddceabbe8d
commit a7344af05e
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-04-10 Sergio Martin <sergio.martin@artica.es>
* include/functions_agents.php: Fixed an error when try
to retrieve policy acl's without agents choosed
2012-04-10 Sergio Martin <sergio.martin@artica.es>
* include/javascript/pandora.js

View File

@ -192,6 +192,13 @@ function agents_get_alerts_simple ($id_agent = false, $filter = '', $options = f
$selectText = 'COUNT(talert_template_modules.id) AS count';
}
if(is_array($id_agent)) {
$extra_sql = enterprise_hook('policies_get_modules_sql_condition', array(reset($id_agent), 't3.', false));
}
else {
$extra_sql = '';
}
$extra_sql = enterprise_hook('policies_get_modules_sql_condition', array(reset($id_agent), 't3.', false));
if ($extra_sql === ENTERPRISE_NOT_HOOK) {
$extra_sql = '';