Kaynağa Gözat

bugfix UsageUpdate

andre 2 yıl önce
ebeveyn
işleme
c052e90798
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      app/Http/Actions/UsageUpdate.php

+ 1 - 2
app/Http/Actions/UsageUpdate.php

@@ -13,8 +13,6 @@ class UsageUpdate extends AddonController
 {
     public function execute($params = null)
     {
-        $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
-
         logModuleCall(
             'kerioEmail',
             __FUNCTION__,
@@ -23,6 +21,7 @@ class UsageUpdate extends AddonController
             $api
         );
 
+        $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
             $domains = $api->getDomains(['id','name']);