fix undefined variable because of re-structuring, thx Dessa
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -1043,8 +1043,12 @@ if ($page == 'domains'
|
|||||||
");
|
");
|
||||||
$customer = Database::pexecute_first($customer_stmt, array('customerid' => $result['customerid']));
|
$customer = Database::pexecute_first($customer_stmt, array('customerid' => $result['customerid']));
|
||||||
|
|
||||||
|
$customerid = -1;
|
||||||
|
if (isset($_POST['customerid'])) {
|
||||||
$customerid = intval($_POST['customerid']);
|
$customerid = intval($_POST['customerid']);
|
||||||
if (isset($_POST['customerid'])
|
}
|
||||||
|
|
||||||
|
if ($customerid > 0
|
||||||
&& $customerid != $result['customerid']
|
&& $customerid != $result['customerid']
|
||||||
&& $settings['panel']['allow_domain_change_customer'] == '1'
|
&& $settings['panel']['allow_domain_change_customer'] == '1'
|
||||||
) {
|
) {
|
||||||
@@ -1087,8 +1091,12 @@ if ($page == 'domains'
|
|||||||
|
|
||||||
if ($userinfo['customers_see_all'] == '1') {
|
if ($userinfo['customers_see_all'] == '1') {
|
||||||
|
|
||||||
|
$adminid = -1;
|
||||||
|
if (isset($_POST['adminid'])) {
|
||||||
$adminid = intval($_POST['adminid']);
|
$adminid = intval($_POST['adminid']);
|
||||||
if (isset($_POST['adminid'])
|
}
|
||||||
|
|
||||||
|
if ($adminid > 0
|
||||||
&& $adminid != $result['adminid']
|
&& $adminid != $result['adminid']
|
||||||
&& $settings['panel']['allow_domain_change_admin'] == '1'
|
&& $settings['panel']['allow_domain_change_admin'] == '1'
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user