Explorar el Código

add cwp7CheckLimit

andre hace 3 años
padre
commit
51f74b05da
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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/
  * @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) {
 function cwp7CheckLimit($params, $type) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
@@ -1195,7 +1195,7 @@ function cwp7CheckLimit($params, $type) {
 		__FUNCTION__,
 		__FUNCTION__,
 		$response,
 		$response,
 		'debug',
 		'debug',
-		$type
+		$response[$type]['sw']
 	);
 	);
 	if($response[$type]['sw'] < 1) {
 	if($response[$type]['sw'] < 1) {
 		return true;
 		return true;