andre 3 лет назад
Родитель
Сommit
549dbf3f60
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      cwp7.php

+ 3 - 3
cwp7.php

@@ -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';
 }
 }