From 7e116e19d1474c4321d421b099b977d78b937e54 Mon Sep 17 00:00:00 2001 From: Aldrioth Date: Mon, 22 Aug 2011 12:26:51 +0000 Subject: [PATCH] 2011-08-22 Tomas Palacios * godmode/massive/massive_add_alerts.php: fixed a bug where all the massive add alert ops were being registered in the Pandora audit log as failed even if they were successful. Fixes: Bug ID 3396378 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4801 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/godmode/massive/massive_add_alerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/massive/massive_add_alerts.php b/pandora_console/godmode/massive/massive_add_alerts.php index acd9b0f55f..5076d5af9f 100644 --- a/pandora_console/godmode/massive/massive_add_alerts.php +++ b/pandora_console/godmode/massive/massive_add_alerts.php @@ -76,7 +76,7 @@ function process_manage_add ($id_alert_template, $id_agents, $module_names) { $conttotal ++; } - if ($countSuccess > 0) { + if ($contsuccess > 0) { db_pandora_audit("Masive management", "Add alert", false, false, "Alert template: " . $id_alert_template . " Modules: " . json_encode($modules_id)); } else {