Fixed quota access (thanks to xocii), fixes #926

Signed-off-by: Christoph Burchert (Chb) <derchb@froxlor.org>
This commit is contained in:
Christoph Burchert (Chb)
2011-10-18 13:43:38 +02:00
parent 450fff57ff
commit b23ea6bbcc

View File

@@ -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 [<guid>][block][used]
$webspaceusage = floatval($usedquota[$row['guid']]['block']['used']);