From: Ken A. <ka...@pa...> - 2008-01-06 04:13:14
|
Paul Lesniewski wrote: > On Jan 5, 2008 5:34 PM, Ken A <ka...@pa...> wrote: >> 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') > > You should use "diff -u". I think the better change would be: > > if ($taken !== '' && !empty($total)) > Ah, thanks. php has a () for everything. Ken > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ----- > squirrelmail-plugins mailing list > Posting guidelines: http://squirrelmail.org/postingguidelines > List address: squ...@li... > List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins > List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins > |