2011-02-21 Ramon Novoa <rnovoa@artica.es>

* 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
This commit is contained in:
Ramon Novoa 2011-02-21 13:10:31 +00:00
parent 2c5be45868
commit 02f4027ff0
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-02-21 Ramon Novoa <rnovoa@artica.es>
* godmode/massive/massive_edit_agents.php: Check for false instead of
the number of updated agents.
2011-02-21 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/alert_list.builder.php: added the conditional to hide the

View File

@ -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'));