fix inline-if-statements to show specific fields only if necessary, refs #633

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2011-03-06 16:49:22 +01:00
parent 57c72d68a4
commit 4fc02e6c93
6 changed files with 26 additions and 26 deletions

View File

@@ -34,14 +34,14 @@ return array(
'type' => 'password'
),
'email_quota' => array(
'visible' => $settings['system']['mail_quota_enabled'],
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
'label' => $lng['emails']['quota'],
'desc' => $lng['panel']['megabyte'],
'type' => 'text',
'value' => $quota
),
'alternative_email' => array(
'visible' => $settings['panel']['sendalternativemail'],
'visible' => ($settings['panel']['sendalternativemail'] == '1' ? true : false),
'label' => $lng['emails']['alternative_emailaddress'],
'type' => 'text'
)