Commit 8eb9bd14 authored by tbrehm's avatar tbrehm

Fixed: FS#1463 - cron options have to be handled differently.

parent df8eb314
......@@ -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;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment