diff --git a/src/Endpoints/Zones.php b/src/Endpoints/Zones.php index b81343d..94e538b 100644 --- a/src/Endpoints/Zones.php +++ b/src/Endpoints/Zones.php @@ -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; } -} \ No newline at end of file +}