Fixed error in cron

This commit is contained in:
Daniel Maya 2017-04-24 12:39:11 +02:00
parent ba17d7793a
commit 3f6adf9f65

@ -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'});