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