|
@@ -484,9 +484,6 @@ function cwp7_delSubdomain($params) {
|
|
|
array_push($clientsubdomains, $subdomain['subdomain'] . "." . $subdomain['domain']);
|
|
array_push($clientsubdomains, $subdomain['subdomain'] . "." . $subdomain['domain']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if(!in_array($_POST['d'], $clientsubdomains)) {
|
|
|
|
|
- return 'Error: ' . $_POST['d'] . ' not in client subdomains';
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'cwp7',
|
|
'cwp7',
|
|
@@ -496,6 +493,9 @@ function cwp7_delSubdomain($params) {
|
|
|
$clientsubdomains
|
|
$clientsubdomains
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+ if(!in_array($_POST['d'], $clientsubdomains)) {
|
|
|
|
|
+ return 'Error: ' . $_POST['d'] . ' not in client subdomains';
|
|
|
|
|
+ }
|
|
|
return 'success';
|
|
return 'success';
|
|
|
}
|
|
}
|
|
|
|
|
|