change quota reading (3451834)

This commit is contained in:
Roland Gruber 2011-12-08 17:20:22 +00:00
parent c739c02167
commit 38dc307839
1 changed files with 9 additions and 7 deletions

View File

@ -297,14 +297,16 @@ sub manageQuotas {
@quota_temp1 = split (':', $vals[4]); @quota_temp1 = split (':', $vals[4]);
$group=0; $group=0;
$i=0; $i=0;
while ($quota_temp1[$i]) { foreach my $quota_element (@quota_temp1) {
$j=0; if (length ($quota_element) >= 2) {
@temp = split (',', $quota_temp1[$i]); @temp = split (',', $quota_element);
while ($temp[$j]) { $j=0;
$quota[$i][$j] = $temp[$j]; foreach my $temp_element (@temp) {
$j++; $quota[$i][$j] = $temp_element;
$j++;
}
$i++;
} }
$i++;
} }
if ($vals[3] eq 'user') { $group=false; } if ($vals[3] eq 'user') { $group=false; }
else { else {