mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Make sure the module still exists before compacting its data.
This commit is contained in:
parent
723e68a9ed
commit
35a02f3eb8
@ -437,6 +437,7 @@ sub pandora_compactdb ($$) {
|
|||||||
my $id_module = $data->{'id_agente_modulo'};
|
my $id_module = $data->{'id_agente_modulo'};
|
||||||
if (! defined($module_proc_hash{$id_module})) {
|
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);
|
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.
|
# Mark proc modules.
|
||||||
if ($module_type == 2 || $module_type == 6 || $module_type == 9 || $module_type == 18 || $module_type == 21 || $module_type == 31) {
|
if ($module_type == 2 || $module_type == 6 || $module_type == 9 || $module_type == 18 || $module_type == 21 || $module_type == 31) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user