mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 03:19:05 +02:00
add defined check for $conf->{'_inventory_purge'}
This commit is contained in:
parent
311ac744c6
commit
200b821a20
@ -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'});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user