remove notice of undefined variable when adding/editing a customer as admin

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-08-20 06:55:56 +02:00
parent 14bd4c927b
commit 022b83d881
3 changed files with 9 additions and 26 deletions

View File

@@ -251,9 +251,10 @@ return array(
),
'backup_allowed' => array(
'label' => $lng['backup_allowed'].'?',
'type' => 'yesno',
'value' => 0,
'yesno_var' => $backup_allowed,
'type' => 'checkbox',
'values' => array(
array ('label' => $lng['panel']['yes'], 'value' => '1')
),
'visible' => ($settings['system']['backup_enabled'] == '1' ? true : false)
),
'number_of_aps_packages' => array(

View File

@@ -260,9 +260,11 @@ return array(
),
'backup_allowed' => array(
'label' => $lng['backup_allowed'].'?',
'type' => 'yesno',
'value' => 0,
'yesno_var' => $backup_allowed,
'type' => 'checkbox',
'values' => array(
array ('label' => $lng['panel']['yes'], 'value' => '1')
),
'value' => array($result['backup_allowed']),
'visible' => ($settings['system']['backup_enabled'] == '1' ? true : false)
),
'number_of_aps_packages' => array(