From 02f4027ff01aa947522b96e4da46697d9d78c742 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 21 Feb 2011 13:10:31 +0000 Subject: [PATCH] 2011-02-21 Ramon Novoa * godmode/massive/massive_edit_agents.php: Check for false instead of the number of updated agents. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3943 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/massive/massive_edit_agents.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6394985aa1..c5e923452a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-02-21 Ramon Novoa + + * godmode/massive/massive_edit_agents.php: Check for false instead of + the number of updated agents. + 2011-02-21 Miguel de Dios * godmode/alerts/alert_list.builder.php: added the conditional to hide the diff --git a/pandora_console/godmode/massive/massive_edit_agents.php b/pandora_console/godmode/massive/massive_edit_agents.php index dbca9f9135..8af3b5b210 100644 --- a/pandora_console/godmode/massive/massive_edit_agents.php +++ b/pandora_console/godmode/massive/massive_edit_agents.php @@ -158,7 +158,7 @@ if ($update_agents) { } - if ($n_edited > 0) { + if ($result !== false) { pandora_audit("Masive management", "Update agent " . $id_agent, false, false, json_encode($fields)); } else { @@ -166,7 +166,7 @@ if ($update_agents) { } - print_result_message ($n_edited > 0, + print_result_message ($result !== false, __('Agents updated successfully').'('.$n_edited.')', __('Agents cannot be updated'));