Changes sizeof check to throw an error if no zone id is found.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user