diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2011-12-01 16:29:03 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2011-12-01 16:29:03 -0200 |
commit | afc8358a7e4cabb8fef5c711418db654d17ee494 (patch) | |
tree | 01cee51fbacece4686a33cd0e9de322c3e79cc2a /config/postfix/postfix.inc | |
parent | 1536d3590d52e56a67f3443df9aa3dfe378c3c18 (diff) | |
download | pfsense-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.inc | 3 |
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'])) { |