From afc8358a7e4cabb8fef5c711418db654d17ee494 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Thu, 1 Dec 2011 16:29:03 -0200 Subject: postfix - fix inc error while forwarding no domains --- config/postfix/postfix.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'])) { -- cgit v1.2.3