Set mail quota warning to less than 50 MB

This commit is contained in:
Hadi Nategh 2017-03-16 12:18:27 +01:00
parent ff57e664d7
commit 7a6d977b42

View File

@ -4330,13 +4330,14 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
if($quota !== false && $quota['limit'] != 'NOT SET') {
$quotainfo = $this->quotaDisplay($quota['usage'], $quota['limit']);
$quotaMin = $quotainfo['freespace']/pow(1024, 2);
$content = array (
'quota' => $quotainfo['text'],
'quotainpercent' => (string)$quotainfo['percent'],
'quotaclass' => $quotainfo['class'],
'quotanotsupported' => "",
'profileid' => $icServerID,
'quotawarning' => ($quotainfo['freespace']/pow(1024, 2)) < 50 && $quotainfo['percent'] >= 99 ? true : false
'quotawarning' => $quotaMin < 50 ? true : false
);
}
else