From 8cbab0172ad391b8f2f7a42d07da0ecee6f592af Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Fri, 19 Apr 2024 11:52:48 +0200 Subject: [PATCH] fix: allow empty aiagents --- plugin/Api.php | 4 ++++ 1 file changed, 4 insertions(+) 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' => '/',