Only set housekeeping default if user has enabled

This commit is contained in:
Oliver Gorwits
2014-03-30 02:17:29 +01:00
parent 02aa1508e9
commit 164206a7a7
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
* FATAL warnings considered harmful
* Only show STP blocked icon if port is UP
* Store device model and serial via UTF8 conversion
* Only set housekeeping default if user has enabled
2.024004 - 2014-03-04

View File

@@ -52,7 +52,7 @@ setting('dns')->{hosts_file} ||= '/etc/hosts';
# housekeeping expire used to be called expiry
setting('housekeeping')->{expire} ||= setting('housekeeping')->{expiry}
if exists setting('housekeeping')->{expiry};
if setting('housekeeping') and exists setting('housekeeping')->{expiry};
=head1 NAME