diff --git a/plugin/Api.php b/plugin/Api.php index 76cf5bc..960167a 100644 --- a/plugin/Api.php +++ b/plugin/Api.php @@ -35,6 +35,10 @@ public function get() public function getLatestAgents() { + if (count($this->agentTypes) === 0) { + return null; + } + $body = [ 'agent_types' => $this->agentTypes, 'disallow' => '/',