ソースを参照

getDomainRecords should allow us to access other data as well.

Shane Mc Cormack 6 年 前
コミット
4bc32e6b37
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/MyDNSHostAPI.php

+ 1 - 1
src/MyDNSHostAPI.php

@@ -783,7 +783,7 @@
 			if ($this->auth === FALSE) { return []; }
 			if ($this->auth === FALSE) { return []; }
 
 
 			$result = $this->api(($this->domainAdmin ? '/admin' : '') . '/domains/' . $domain . '/records');
 			$result = $this->api(($this->domainAdmin ? '/admin' : '') . '/domains/' . $domain . '/records');
-			return isset($result['response']['records']) ? $result['response']['records'] : [];
+			return isset($result['response']) ? $result['response'] : [];
 		}
 		}
 
 
 		/**
 		/**