Explorar o código

bugfix usageupdate

andre %!s(int64=2) %!d(string=hai) anos
pai
achega
5c844480c1
Modificáronse 1 ficheiros con 9 adicións e 14 borrados
  1. 9 14
      cwp7.php

+ 9 - 14
cwp7.php

@@ -353,13 +353,6 @@ function cwp7_ClientArea($params) {
 			array_push($clientInfo['domains'], $domain);
 		}
 	}
-	logModuleCall(
-		'cwp7',
-		__FUNCTION__,
-		$params,
-		'debug',
-		$clientInfo
-	);
 	return array(
         'tabOverviewReplacementTemplate' => 'clientarea',
         'vars' => $clientInfo,
@@ -380,13 +373,6 @@ function cwp7_ClientArea($params) {
 function cwp7_ServiceSingleSignOn($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->getLoginLink($params['username']);
-	logModuleCall(
-		'cwp7',
-		__FUNCTION__,
-		$params,
-		'debug',
-		$response
-	);
 	if($response['status'] == 'OK') {
 		$link = $response['msj']['details'];
 		$linkautologin = $link[0]['url'];
@@ -475,6 +461,15 @@ function cwp7_UsageUpdate($params) {
 	$response = $cwp7->getAllAccounts();
 	if($response['status'] == 'OK'){
 		$results = $response['msj'];
+
+		logModuleCall(
+			'cwp7',
+			__FUNCTION__,
+			$params,
+			'debug',
+			$result
+		);
+
 		for($i = 0; $i < count($results); $i++){
 			if($results[$i]['diskusage'] == '') { 
 				$diskusage = 0;