Commit 08a328b7 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#2222 - Check quota reporting on debian.

parent da843bf4
......@@ -46,7 +46,13 @@ class list_action extends listform_actions {
$rec['hard'] = $monitor_data['user'][$username]['hard'];
$rec['files'] = $monitor_data['user'][$username]['files'];
if (!is_numeric($rec['used'])) $rec['used']=$rec['used'][1];
if (!is_numeric($rec['used'])){
if ($rec['used'][0] > $rec['used'][1]){
$rec['used'] = $rec['used'][0];
} else {
$rec['used'] = $rec['used'][1];
}
}
if (!is_numeric($rec['soft'])) $rec['soft']=$rec['soft'][1];
if (!is_numeric($rec['hard'])) $rec['hard']=$rec['hard'][1];
if (!is_numeric($rec['files'])) $rec['files']=$rec['files'][1];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment