mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +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
|
# 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…
x
Reference in New Issue
Block a user