remove unnecessary ternaries (#1027)
* remove unnecessary ternaries * fix: !($id <= 0); * remove ternary
This commit is contained in:
@@ -54,7 +54,7 @@ return array(
|
||||
'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'checked' => \Froxlor\Settings::Get('system.webserver') == 'apache2' && (int) \Froxlor\Settings::Get('system.apache24') == 0 ? true : false
|
||||
'checked' => \Froxlor\Settings::Get('system.webserver') == 'apache2' && (int) \Froxlor\Settings::Get('system.apache24') == 0
|
||||
),
|
||||
'vhostcontainer' => array(
|
||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
||||
@@ -95,7 +95,7 @@ return array(
|
||||
'rows' => 12
|
||||
),
|
||||
'ssl_default_vhostconf_domain' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||
'label' => $lng['admin']['ipsandports']['ssl_default_vhostconf_domain'],
|
||||
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
||||
'type' => 'textarea',
|
||||
@@ -113,7 +113,7 @@ return array(
|
||||
'section_d' => array(
|
||||
'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
||||
'image' => 'icons/ipsports_add.png',
|
||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||
'fields' => array(
|
||||
'ssl' => array(
|
||||
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
||||
|
||||
@@ -99,7 +99,7 @@ return array(
|
||||
'value' => $result['default_vhostconf_domain']
|
||||
),
|
||||
'ssl_default_vhostconf_domain' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||
'label' => $lng['admin']['ipsandports']['ssl_default_vhostconf_domain'],
|
||||
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
||||
'type' => 'textarea',
|
||||
@@ -118,7 +118,7 @@ return array(
|
||||
'section_d' => array(
|
||||
'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
||||
'image' => 'icons/ipsports_edit.png',
|
||||
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
|
||||
'visible' => \Froxlor\Settings::Get('system.use_ssl') == 1,
|
||||
'fields' => array(
|
||||
'ssl' => array(
|
||||
'label' => $lng['admin']['ipsandports']['enable_ssl'],
|
||||
|
||||
Reference in New Issue
Block a user