فهرست منبع

clientareafunctions

andre 3 سال پیش
والد
کامیت
a6bb3a0a48
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      cwp7.php

+ 1 - 1
cwp7.php

@@ -580,7 +580,7 @@ function cwp7_setDNS($params) {
     );
     );
     array_push($zoneRecords, $newRecord);
     array_push($zoneRecords, $newRecord);
     foreach($dnsZone['data']->records as $record) {
     foreach($dnsZone['data']->records as $record) {
-        if($record->name != $hostName || $record->type != 'A' || $record->type != 'CNAME') {
+        if($record->name != $hostName || ($record->type != 'A' && $record->type != 'CNAME')) {
             array_push($zoneRecords, $record);
             array_push($zoneRecords, $record);
         };
         };
     }
     }