avoid undefined variables/indexes
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -244,6 +244,11 @@ if ($page == '' || $page == 'overview') {
|
||||
}
|
||||
}
|
||||
|
||||
// dummy to avoid unknown variables
|
||||
$language_options = null;
|
||||
$gender_options = null;
|
||||
$hosting_plans = null;
|
||||
|
||||
$plans_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/plans/formfield.plans_add.php';
|
||||
$cust_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/customer/formfield.customer_add.php';
|
||||
// unset unneeded stuff
|
||||
@@ -463,6 +468,30 @@ if ($page == '' || $page == 'overview') {
|
||||
}
|
||||
}
|
||||
|
||||
// dummy to avoid unknown variables
|
||||
$result['loginname'] = null;
|
||||
$result['documentroot'] = null;
|
||||
$result['standardsubdomain'] = null;
|
||||
$result['deactivated'] = null;
|
||||
$language_options = null;
|
||||
$result['firstname'] = null;
|
||||
$gender_options = null;
|
||||
$result['company'] = null;
|
||||
$result['street'] = null;
|
||||
$result['zipcode'] = null;
|
||||
$result['city'] = null;
|
||||
$result['phone'] = null;
|
||||
$result['fax'] = null;
|
||||
$result['email'] = null;
|
||||
$result['customernumber'] = null;
|
||||
$result['custom_notes'] = null;
|
||||
$result['custom_notes_show'] = null;
|
||||
$hosting_plans = null;
|
||||
$result['imap'] = null;
|
||||
$result['pop3'] = null;
|
||||
$admin_select_cnt = null;
|
||||
$admin_select = null;
|
||||
|
||||
$plans_edit_data = include_once dirname(__FILE__) . '/lib/formfields/admin/plans/formfield.plans_edit.php';
|
||||
$cust_edit_data = include_once dirname(__FILE__) . '/lib/formfields/admin/customer/formfield.customer_edit.php';
|
||||
// unset unneeded stuff
|
||||
|
||||
2
templates/Sparkle/admin/plans/plans.tpl
vendored
2
templates/Sparkle/admin/plans/plans.tpl
vendored
@@ -26,7 +26,7 @@ $header
|
||||
<tr>
|
||||
<th>{$lng['admin']['plans']['name']} {$arrowcode['p.name']}</th>
|
||||
<th>{$lng['admin']['plans']['description']} {$arrowcode['p.description']}</th>
|
||||
<th>{$lng['admin']['admin']} {$arrowcode['a.adminname']}</th>
|
||||
<th>{$lng['admin']['admin']} {$arrowcode['adminname']}</th>
|
||||
<th>{$lng['admin']['plans']['last_update']} {$arrowcode['p.ts']}</th>
|
||||
<th>{$lng['panel']['options']}</th>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user