mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed error in cron
This commit is contained in:
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'});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user