diff --git a/interface/web/client/tools.inc.php b/interface/web/client/tools.inc.php index 4f757ccf3ce500db4d79e80a2b114e9257db372f..a6cd5256ac33450bd4a146a7b52e4a7ee1d09716 100644 --- a/interface/web/client/tools.inc.php +++ b/interface/web/client/tools.inc.php @@ -59,12 +59,17 @@ function applyClientTemplates($clientId){ /* maybe the template is deleted in the meantime */ if (is_array($addLimits)){ foreach($addLimits as $k => $v){ - if ($limits[$k] > -1){ - if ($v == -1) { - $limits[$k] = -1; - } - else { - $limits[$k] += $v; + if($k == 'limit_cron_type') { + $limits[$k] = $v; + } elseif($k == 'limit_cron_frequency') { + if($v < $limits[$k]) $limits[$k] = $v; + } else { + if ($limits[$k] > -1){ + if ($v == -1) { + $limits[$k] = -1; + } else { + $limits[$k] += $v; + } } } }