From c5e232bef3b46d19c39700603c26a5a00e242b49 Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 26 Jan 2010 19:38:29 +0000 Subject: [PATCH] 2010-01-26 Sancho Lerena * PandoraFMS/Core.pm: Fixed bug #2932694 (extra ',' in a SQL sentence). Reported by Joe Horn. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/Core.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 3cb4323684..eeba5bbbac 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2010-01-26 Sancho Lerena + + * Core.pm: Fixed bug #2932694 (extra ',' in a SQL sentence). Reported by + Joe Horn. + 2010-01-25 Pablo de la ConcepciĆ³n * conf/pandora_server.conf, lib/PandoraFMS/Config.pm, diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index d7de9f2839..c8630e96bc 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -721,7 +721,7 @@ sub pandora_update_agent ($$$$$$$;$$$$) { # No update for interval, timezone and position fields (some old agents don't support it) if ($agent_interval == -1){ - db_do($dbh, 'UPDATE tagente SET agent_version = ?, ultimo_contacto_remoto = ?, ultimo_contacto = ?, os_version = ?, WHERE id_agente = ?', + db_do($dbh, 'UPDATE tagente SET agent_version = ?, ultimo_contacto_remoto = ?, ultimo_contacto = ?, os_version = ? WHERE id_agente = ?', $agent_version, $agent_timestamp, $timestamp, $os_version, $agent_id); return; }