andre hace 3 años
padre
commit
49abb4a05d
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. 11 2
      cwp7.php

+ 11 - 2
cwp7.php

@@ -158,16 +158,25 @@ function cwp7_UnsuspendAccount($params) {
 }
 
 function cwp7_ClientArea($params){
+	$clientInfo = array('moduleclientarea' => '1');
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->listDomains($params['username']);
+	if($response['status'] != 'OK') {
+		logModuleCall(
+			'cwp7',
+			__FUNCTION__,
+			$params,
+			'debug',
+			$response
+		);
+	}
 	logModuleCall(
 		'cwp7',
 		__FUNCTION__,
 		$params,
 		'debug',
 		$response
-		);
-	$clientInfo = array('moduleclientarea' => '1');
+	);
 	return array(
         'tabOverviewReplacementTemplate' => 'clientarea',
         'vars' => $clientInfo,