SF.net SVN: postfixadmin:[455] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2008-09-01 19:20:14
|
Revision: 455
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=455&view=rev
Author: GingerDog
Date: 2008-09-01 19:20:23 +0000 (Mon, 01 Sep 2008)
Log Message:
-----------
functions.inc.php: Fix mailbox check_mailbox() routine - if the domain has 0 for mailbox count it should allow unlimited mailboxes (not disable - which is -1)
Modified Paths:
--------------
trunk/functions.inc.php
Modified: trunk/functions.inc.php
===================================================================
--- trunk/functions.inc.php 2008-09-01 19:01:24 UTC (rev 454)
+++ trunk/functions.inc.php 2008-09-01 19:20:23 UTC (rev 455)
@@ -635,13 +635,14 @@
function check_mailbox ($domain)
{
$limit = get_domain_properties ($domain);
+ /* -1 = disable, 0 = unlimited */
if ($limit['mailboxes'] == 0)
{
- return false;
+ return true;
}
if ($limit['mailboxes'] < 0)
{
- return true;
+ return false;
}
if ($limit['mailbox_count'] >= $limit['mailboxes'])
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|