Explorar o código

add ressources

andre %!s(int64=2) %!d(string=hai) anos
pai
achega
73a074e544
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      api/KerioWhmcs.php

+ 2 - 2
api/KerioWhmcs.php

@@ -447,7 +447,7 @@ class KerioWhmcs extends KerioConnectApi {
 	 */
 	function createResouce($attr, $domain) {
 		$params = array(
-			'resources' => array(array(
+			'resources' => array(
 				'name' => $attr['name'],
 				'description' => $attr['description'],
 				'type' => $attr['type'],
@@ -455,7 +455,7 @@ class KerioWhmcs extends KerioConnectApi {
 				'resourceUsers' => array('id' => $domain, 'type' => 'AuthDomainPrincipal'),
 				'manager' => array('id' => $attr['manager'], 'type' => 'UserPrincipal'),
 				'domainId' => $domain
-			))
+			)
 		);
 
 		$result = $this->sendRequest('Resources.create', $params);