Merge pull request #114 from Pezhvak/patch-1

Fixing fatal error in PHP 7.4
This commit is contained in:
Junade
2020-02-03 17:21:31 +00:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

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