andre 6 месяцев назад
Родитель
Сommit
4ba067fcb7
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      core/Helper/DnsHelper.php

+ 3 - 3
core/Helper/DnsHelper.php

@@ -192,11 +192,11 @@ class DnsHelper
     function KerioEmailsetDNS()
     {
         $zoneIDcollection = Capsule::table('dns_manager2_zone')
-            ->select('id')
+            ->select('relid')
             ->where('name', '=', $this->params['domain'])
             ->get();
         $zoneIDobj = $zoneIDcollection[0];
-        $zoneID = $zoneIDobj->{'id'};
+        $zoneID = $zoneIDobj->{'relid'};
         if(!isset($zoneID)) {
             return 'Error: zone ID not found for domain ' . $this->params['domain'];
         }
@@ -266,7 +266,7 @@ class DnsHelper
         } */
         return 'success';
     }
-    
+
     function KerioEmailunsetMX()
     {
         $zoneIDcollection = Capsule::table('dns_manager2_zone')