andre 3 жил өмнө
parent
commit
00a05672a7
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);
         };
         };
     }
     }