Kaynağa Gözat

getDomainAccess() should return all data that the API gives us.

Shane Mc Cormack 6 yıl önce
ebeveyn
işleme
b4fb05808b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/MyDNSHostAPI.php

+ 1 - 1
src/MyDNSHostAPI.php

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