diff --git a/src/Endpoints/DNS.php b/src/Endpoints/DNS.php index 65dc4a4..c3609e9 100644 --- a/src/Endpoints/DNS.php +++ b/src/Endpoints/DNS.php @@ -128,8 +128,8 @@ class DNS implements API public function getRecordID(string $zoneID, string $type = '', string $name = ''): string { $records = $this->listRecords($zoneID, $type, $name); - if (isset($records->result{0}->id)) { - return $records->result{0}->id; + if (isset($records->result[0]->id)) { + return $records->result[0]->id; } return false; }