Explorar o código

getDomainRecords should allow us to access other data as well.

Shane Mc Cormack %!s(int64=6) %!d(string=hai) anos
pai
achega
4bc32e6b37
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/MyDNSHostAPI.php

+ 1 - 1
src/MyDNSHostAPI.php

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