only show 'SSL redirect' checkbox for customers when there really is a ip/port combination for SSL; fixes #1179

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-03-27 08:34:59 +01:00
parent c986c08cfb
commit a903455ee0
3 changed files with 17 additions and 9 deletions

View File

@@ -79,7 +79,7 @@ return array(
'value' => array($result['isemaildomain'])
),
'ssl_redirect' => array(
'visible' => ($settings['system']['use_ssl'] == '1' ? true : false),
'visible' => ($settings['system']['use_ssl'] == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
'label' => 'SSL Redirect',
'type' => 'checkbox',
'values' => array(