Fixed error with open source version (without enterprise).
(cherry picked from commit 64a595cd4d
)
This commit is contained in:
parent
127daf8fdc
commit
0d8de71e13
|
@ -214,6 +214,8 @@ sub pandora_purgedb ($$) {
|
|||
}
|
||||
log_message ('', "\n");
|
||||
|
||||
if (defined($conf->{'_enterprise_installed'}) && $conf->{'_enterprise_installed'} eq '1' &&
|
||||
defined($conf->{'_metaconsole'}) && $conf->{'_metaconsole'} eq '1'){
|
||||
log_message ('PURGE', "Deleting validated events from tmetaconsole_event_history.", '');
|
||||
$events_to_delete = get_db_value ($dbh, "SELECT COUNT(*) FROM tmetaconsole_event_history WHERE estado = 1");
|
||||
while($events_to_delete > 0) {
|
||||
|
@ -228,6 +230,7 @@ sub pandora_purgedb ($$) {
|
|||
}
|
||||
log_message ('', "\n");
|
||||
}
|
||||
}
|
||||
else {
|
||||
log_message ('PURGE', 'event_purge is set to 0. Old events will not be deleted.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue