little bug in imp's conf.php

Ulrich Stärk uli@spielviel.de
Fri, 29 Mar 2002 23:40:32 +0100 (CET)


when using cyrus imapd and not setting any quota to an user, the quota
checking of imp is working perfectly, because the quota checking returns
nothing and imp is checking if the result contains anything. but when
setting the quota of an user and then resetting it to 'none' the result of
the quota checking returns 0 and the quota checking prints a division by
zero error on the webpage.
In order to avoid this you should change line 388 of your conf.php from
if (!empty($quota)) {
to
if (!empty($quota) && $quota['limit'] != 0) {

greets

Uli