소스 검색

add cwp7CheckLimit

andre 3 년 전
부모
커밋
51f74b05da
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      cwp7.php

+ 2 - 2
cwp7.php

@@ -1185,7 +1185,7 @@ function cwp7CheckSOA($domain, $nameserverIP, $nameserverName ) {
  *
  * @see https://developers.whmcs.com/provisioning-modules/supported-functions/
  *
- * @return bool true -> limit reached, false -> limit noch reached
+ * @return bool true -> limit reached, false -> limit not reached
  */
 function cwp7CheckLimit($params, $type) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
@@ -1195,7 +1195,7 @@ function cwp7CheckLimit($params, $type) {
 		__FUNCTION__,
 		$response,
 		'debug',
-		$type
+		$response[$type]['sw']
 	);
 	if($response[$type]['sw'] < 1) {
 		return true;