Merge pull request #11 from typhonius/fix-zone-id-verification

Changes sizeof check to throw an error if no zone id is found.
This commit is contained in:
Junade
2017-09-21 18:07:55 +01:00
committed by GitHub

View File

@@ -96,7 +96,7 @@ class Zones implements API
{
$zones = $this->listZones($name);
if (sizeof($zones) < 1) {
if (sizeof($zones->result) < 1) {
throw new EndpointException("Could not find zones with specified name.");
}
@@ -142,4 +142,4 @@ class Zones implements API
return false;
}
}
}