2011-01-31 Sergio Martin <sergio.martin@artica.es>

* lib/PandoraFMS/DB.pm: Fixed a codification bug with
	the CLI policy apply



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3791 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-01-31 15:39:13 +00:00
parent dd14469349
commit dcb240e316
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-01-31 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm: Fixed a codification bug with
the CLI policy apply
2011-01-22 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Config.pm: Updated version, we're on 4.0-dev !

View File

@ -165,7 +165,7 @@ sub get_module_name ($$) {
sub get_agent_module_id ($$$) {
my ($dbh, $module_name, $agent_id) = @_;
my $rc = get_db_value ($dbh, "SELECT id_agente_modulo FROM tagente_modulo WHERE nombre = ? AND id_agente = ?", safe_input($module_name), $agent_id);
my $rc = get_db_value ($dbh, "SELECT id_agente_modulo FROM tagente_modulo WHERE nombre = ? AND id_agente = ?", safe_input(safe_output($module_name)), $agent_id);
return defined ($rc) ? $rc : -1;
}