Update DNS.php

fixing php 7.4 deprecation of curly braces
This commit is contained in:
Pezhvak
2019-12-03 17:29:32 +03:30
committed by GitHub
parent 7276b61e20
commit 1be0e794d9

View File

@@ -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;
}