Merge branch '766-Error-CRON-dev' into 'develop'
Fixed error in cron See merge request !398
This commit is contained in:
commit
130362e8c7
|
@ -93,7 +93,7 @@ sub pandora_purgedb ($$) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Delete old inventory data
|
# Delete old inventory data
|
||||||
if ($conf->{'_inventory_purge'} > 0) {
|
if (defined($conf->{'_inventory_purge'}) && $conf->{'_inventory_purge'} > 0) {
|
||||||
if (enterprise_load (\%conf) != 0) {
|
if (enterprise_load (\%conf) != 0) {
|
||||||
my $ulimit_timestamp_inventory = time() - (86400 * $conf->{'_inventory_purge'});
|
my $ulimit_timestamp_inventory = time() - (86400 * $conf->{'_inventory_purge'});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue