From 200b821a203d648bf8c87372b0ad138a5bb09b5c Mon Sep 17 00:00:00 2001 From: Shigekazu Aoyagi Date: Tue, 11 Apr 2017 03:37:23 +0000 Subject: [PATCH] add defined check for $conf->{'_inventory_purge'} --- pandora_server/util/pandora_db.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 3eea7ec0a4..28c5adca1d 100644 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -93,7 +93,7 @@ sub pandora_purgedb ($$) { } # Delete old inventory data - if ($conf->{'_inventory_purge'} > 0) { + if (defined ($conf->{'_inventory_purge'}) && $conf->{'_inventory_purge'} > 0) { if (enterprise_load (\%conf) != 0) { my $ulimit_timestamp_inventory = time() - (86400 * $conf->{'_inventory_purge'});