Make sure the module still exists before compacting its data.

This commit is contained in:
Ramon Novoa 2014-10-07 11:59:02 +02:00
parent 723e68a9ed
commit 35a02f3eb8
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ sub pandora_compactdb ($$) {
my $id_module = $data->{'id_agente_modulo'};
if (! defined($module_proc_hash{$id_module})) {
my $module_type = get_db_value ($dbh, 'SELECT id_tipo_modulo FROM tagente_modulo WHERE id_agente_modulo = ?', $id_module);
next unless defined ($module_type);
# Mark proc modules.
if ($module_type == 2 || $module_type == 6 || $module_type == 9 || $module_type == 18 || $module_type == 21 || $module_type == 31) {