From b23ea6bbcc6ce67881e46ed73e8a891c068c3110 Mon Sep 17 00:00:00 2001 From: "Christoph Burchert (Chb)" Date: Tue, 18 Oct 2011 13:43:38 +0200 Subject: [PATCH] Fixed quota access (thanks to xocii), fixes #926 Signed-off-by: Christoph Burchert (Chb) --- scripts/jobs/cron_traffic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_traffic.php b/scripts/jobs/cron_traffic.php index 8f872eed..6eaa7f6f 100644 --- a/scripts/jobs/cron_traffic.php +++ b/scripts/jobs/cron_traffic.php @@ -321,7 +321,7 @@ while($row = $db->fetch_array($result)) $webspaceusage = 0; # Using repquota, it's faster using this tool than using du traversing the complete directory - if ($settings['system']['diskquota_enabled']) + if ($settings['system']['diskquota_enabled'] && isset($usedquota[$row['guid']]['block']['used']) && $usedquota[$row['guid']]['block']['used'] >= 1) { # We may use the array we created earlier, the used diskspace is stored in [][block][used] $webspaceusage = floatval($usedquota[$row['guid']]['block']['used']);