remove unnecessary ternaries (#1027)
* remove unnecessary ternaries * fix: !($id <= 0); * remove ternary
This commit is contained in:
@@ -43,14 +43,14 @@ return array(
|
||||
]
|
||||
),
|
||||
'email_quota' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
|
||||
'visible' => \Froxlor\Settings::Get('system.mail_quota_enabled') == '1',
|
||||
'label' => $lng['emails']['quota'],
|
||||
'desc' => "MiB",
|
||||
'type' => 'number',
|
||||
'value' => $quota
|
||||
),
|
||||
'alternative_email' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('panel.sendalternativemail') == '1' ? true : false),
|
||||
'visible' => \Froxlor\Settings::Get('panel.sendalternativemail') == '1',
|
||||
'label' => $lng['emails']['alternative_emailaddress'],
|
||||
'type' => 'text'
|
||||
)
|
||||
|
||||
@@ -30,7 +30,7 @@ return array(
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'account_yes' => array(
|
||||
'visible' => ((int) $result['popaccountid'] != 0 ? true : false),
|
||||
'visible' => (int) $result['popaccountid'] != 0,
|
||||
'label' => $lng['emails']['account'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['panel']['yes'],
|
||||
@@ -50,7 +50,7 @@ return array(
|
||||
]
|
||||
),
|
||||
'account_no' => array(
|
||||
'visible' => ((int) $result['popaccountid'] == 0 ? true : false),
|
||||
'visible' => (int) $result['popaccountid'] == 0,
|
||||
'label' => $lng['emails']['account'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['panel']['no'],
|
||||
|
||||
Reference in New Issue
Block a user