From 79c225f27ced11e7c1932a1ea69c9cb145927ec2 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 4 May 2009 14:23:28 +0000
Subject: [PATCH] Fixed: FS#723 - Unable to create email catch-alls even when
 an account has permissions to do so.

---
 interface/web/mail/mail_domain_catchall_edit.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/mail/mail_domain_catchall_edit.php b/interface/web/mail/mail_domain_catchall_edit.php
index 93a063574..eebc7e42c 100644
--- a/interface/web/mail/mail_domain_catchall_edit.php
+++ b/interface/web/mail/mail_domain_catchall_edit.php
@@ -61,7 +61,7 @@ class page_action extends tform_actions {
 			$client = $app->db->queryOneRecord("SELECT limit_mailcatchall FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
 			
 			// Check if the user may add another mailbox.
-			if($client["limit_mailforward"] >= 0) {
+			if($client["limit_mailcatchall"] >= 0) {
 				$tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE sys_groupid = $client_group_id and type = 'catchall'");
 				if($tmp["number"] >= $client["limit_mailcatchall"]) {
 					$app->error($app->tform->wordbook["limit_mailcatchall_txt"]);
-- 
GitLab