From: Ken A <ka...@pa...> - 2008-01-06 01:35:06
|
Using dovecot, with dovecot using it's quota reporting plugin, accounts with no quota set report $total as '0' which causes a divide by zero error in the quota_usage plugin. All I did was add the && $total !== '0' # this change made on line 70 & 320 if ($taken !== '' && $total !== '' && $total !== '0') $percent = number_format(($taken / $total) * 100, 1); else $percent = ''; Thanks, Ken -- Ken Anderson Pacific.Net |