Only start scheduler when schedule config exists

This commit is contained in:
Oliver Gorwits
2014-08-05 21:33:05 +01:00
parent 8616b17ab8
commit c75c48a558
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ delete config->{'housekeeping'};
# schedule expire used to be called expiry
setting('schedule')->{expire} ||= setting('schedule')->{expiry}
if setting('schedule') and exists setting('schedule')->{expiry};
delete config->{'schedule'}->{'expiry'};
delete config->{'schedule'}->{'expiry'} if setting('schedule');
# upgrade reports config from hash to list
if (setting('reports') and ref {} eq ref setting('reports')) {