aboutsummaryrefslogtreecommitdiffstats
path: root/config/postfix/postfix.inc
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-12-01 16:29:03 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-12-01 16:29:03 -0200
commitafc8358a7e4cabb8fef5c711418db654d17ee494 (patch)
tree01cee51fbacece4686a33cd0e9de322c3e79cc2a /config/postfix/postfix.inc
parent1536d3590d52e56a67f3443df9aa3dfe378c3c18 (diff)
downloadpfsense-packages-afc8358a7e4cabb8fef5c711418db654d17ee494.tar.gz
pfsense-packages-afc8358a7e4cabb8fef5c711418db654d17ee494.tar.bz2
pfsense-packages-afc8358a7e4cabb8fef5c711418db654d17ee494.zip
postfix - fix inc error while forwarding no domains
Diffstat (limited to 'config/postfix/postfix.inc')
-rw-r--r--config/postfix/postfix.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc
index 323c3e3f..d009e72a 100644
--- a/config/postfix/postfix.inc
+++ b/config/postfix/postfix.inc
@@ -266,7 +266,8 @@ function sync_package_postfix() {
$relay_domains = "";
$transport = "";
$postfix_config=$config['installedpackages']['postfix']['config'][0];
- $postfix_domains=$config['installedpackages']['postfixdomains']['config'][0];
+ if (is_array($config['installedpackages']['postfixdomains']))
+ $postfix_domains=$config['installedpackages']['postfixdomains']['config'][0];
$message_size_limit=($postfix_config['message_size_limit']?$postfix_config['message_size_limit']:"10240000");
$process_limit=($postfix_config['process_limit']?$postfix_config['process_limit']:"100");
if (is_array($postfix_domains['row'])) {