Changes sizeof check to throw an error if no zone id is found.

This commit is contained in:
Adam Malone
2017-09-22 02:53:25 +10:00
parent a4ddb61d2a
commit 9939afd0b6

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