From b27966aa183350b019b72d4f0cb9fbf5235a00dd Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 20 Dec 2021 15:50:42 +0100 Subject: [PATCH] errata fix --- pandora_server/util/pandora_db.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index e74f96ef5d..c272a29227 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -391,11 +391,11 @@ sub pandora_purgedb ($$) { # Delete old log data log_message ('PURGE', "Deleting old network configuration manager data."); - if (defined($conf->{'days_purge_ncm'}) && $conf->{'days_purge_ncm'} > 0) { - log_message ('PURGE', 'Deleting NCM data older than ' . $conf->{'days_purge_ncm'} . ' days.'); - enterprise_hook ('pandora_purge_ncm', [$dbh, \&log_message, $conf->{'days_purge_ncm'}, $conf->{'_history_db_step'}, $conf->{'_history_db_delay'}]); + if (defined($conf->{'_days_purge'}) && $conf->{'_days_purge'} > 0) { + log_message ('PURGE', 'Deleting NCM data older than ' . $conf->{'_days_purge'} . ' days.'); + enterprise_hook ('pandora_purge_ncm', [$dbh, \&log_message, $conf->{'_days_purge'}, $conf->{'_history_db_step'}, $conf->{'_history_db_delay'}]); } else { - log_message ('PURGE', 'days_purge_ncm is set to 0. Old network configuration manager data will not be deleted.'); + log_message ('PURGE', '_days_purge is set to 0. Old network configuration manager data will not be deleted.'); } # Delete old special days