Ensure we don't throw for disabled update checks
This commit is contained in:
@@ -48,7 +48,11 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
|
||||
$scope.prettyAutoUpdateSchedule = function (pattern) {
|
||||
if (!pattern) return '';
|
||||
var tmp = pattern.split(' ');
|
||||
var hours = tmp[2].split(','), days = tmp[5].split(',');
|
||||
|
||||
if (tmp.length === 1) return tmp[0];
|
||||
|
||||
var hours = tmp[2].split(',');
|
||||
var days = tmp[5].split(',');
|
||||
var prettyDay;
|
||||
if (days.length === 7 || days[0] === '*') {
|
||||
prettyDay = 'Everyday';
|
||||
|
||||
Reference in New Issue
Block a user