tbrehm
2011-03-08 8eb9bd1406f475f628bf78feb49d81660f9f3091
Fixed: FS#1463 - cron options have to be handled differently.
1 files modified
9 ■■■■ changed files
interface/web/client/tools.inc.php 9 ●●●● patch | view | raw | blame | history
interface/web/client/tools.inc.php
@@ -59,11 +59,15 @@
            /* maybe the template is deleted in the meantime */
            if (is_array($addLimits)){
                foreach($addLimits as $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 {
                            } else {
                            $limits[$k] += $v;
                        }
                    }
@@ -71,6 +75,7 @@
            }
        }
    }
    }
    /*
     * Write all back to the database