From 9c9382e6949e1366c6adb502b7aacae2c11023f7 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 08 Sep 2011 09:42:04 -0400 Subject: [PATCH] Fixed: FS#1709 - Wrong message "Your hard-disk space is going full" in the "Monitor -> Show Disk Usage" --- interface/web/client/tools.inc.php | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/interface/web/client/tools.inc.php b/interface/web/client/tools.inc.php index d66afc1..a6cd525 100644 --- a/interface/web/client/tools.inc.php +++ b/interface/web/client/tools.inc.php @@ -59,12 +59,17 @@ /* 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; + } } } } @@ -77,7 +82,7 @@ */ $update = ''; foreach($limits as $k => $v){ - if (strpos($k, 'limit') !== false){ + if (strpos($k, 'limit') !== false && !is_array($v)){ if ($update != '') $update .= ', '; $update .= '`' . $k . "`='" . $v . "'"; } -- Gitblit v1.9.1