2010-01-26 Sancho Lerena <slerena@artica.es>

* 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
This commit is contained in:
slerena 2010-01-26 19:38:29 +00:00
parent 3ce6f38ae1
commit c5e232bef3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-26 Sancho Lerena <slerena@artica.es>
* Core.pm: Fixed bug #2932694 (extra ',' in a SQL sentence). Reported by
Joe Horn.
2010-01-25 Pablo de la Concepción <pablo.concepcion@artica.es>
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm,

View File

@ -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;
}