Fixed problems with module group when not exicts.

(cherry picked from commit 62028a0b47)
This commit is contained in:
m-lopez-f 2016-12-05 10:06:29 +01:00
parent 024719d9d6
commit 9e5fe175a0
1 changed files with 4 additions and 1 deletions

View File

@ -667,7 +667,10 @@ sub process_module_data ($$$$$$$$$$) {
# The group name has to be translated to a group ID
if (defined $module_conf->{'module_group'}) {
$module_conf->{'id_module_group'} = get_module_group_id ($dbh, $module_conf->{'module_group'});
my $id_group_module = get_module_group_id ($dbh, $module_conf->{'module_group'});
if ( $id_group_module >= 0) {
$module_conf->{'id_module_group'} = $id_group_module;
}
delete $module_conf->{'module_group'};
}