Explorar o código

changePackage - try to get domainId by name

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

+ 3 - 1
api/KerioWhmcs.php

@@ -97,7 +97,9 @@ class KerioWhmcs extends KerioConnectApi {
 			'query' => array(
 				'fields' => 'id',
 				'conditions' => array(
-					'name','=',$domain
+					'fieldName' => 'name',
+					'comparator' => 'Eq',
+					'value' => $domain
 				)
 			)
 		);