Merge branch '766-Error-CRON-dev' into 'develop'

Fixed error in cron

See merge request !398
This commit is contained in:
vgilc 2017-05-17 17:25:42 +02:00
commit 130362e8c7
1 changed files with 1 additions and 1 deletions

View File

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