From 151808b6bfdc95369b827acdefebb1748ba2d228 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 15 Feb 2024 17:00:55 +0100 Subject: [PATCH] #12350 added agent name editing 2 --- pandora_console/godmode/agentes/configurar_agente.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 2331bb24db..6a0f0306b0 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1158,8 +1158,7 @@ if ($update_agent) { // Force an update of the agent cache. } - $result = db_process_sql_update('tagente', $values, ['id_agente' => $id_agente]); - + $result = (bool) db_process_sql_update('tagente', $values, ['id_agente' => $id_agente]); if ($result === false && $update_custom_result == false) { ui_print_error_message( __('There was a problem updating the agent')