diff --git a/Classes/Service/Reporting.php b/Classes/Service/Reporting.php index bf9b661..111e953 100644 --- a/Classes/Service/Reporting.php +++ b/Classes/Service/Reporting.php @@ -92,7 +92,7 @@ public function callAPI( bool $useCache = true, string $sitename = '' ): ?array { - if (!empty($this->settings['host']) && !empty($this->settings['token_auth'] && !empty($this->settings['token_auth']))) { + if (!empty($this->settings['host']) && !empty($this->settings['protocol']) && !empty($this->settings['token_auth']) && !empty($this->settings['idSite'])) { $apiCallUrl = $this->buildApiCallUrl($sitename, array_merge($arguments, ['method' => $methodName])); return $this->request($apiCallUrl, $useCache); } @@ -114,7 +114,7 @@ public function getNodeStatistics( array $arguments = [], $useCache = true ): ?AbstractDataResult { - if (!empty($this->settings['host']) && !empty($this->settings['token_auth'] && !empty($this->settings['token_auth']))) { + if (!empty($this->settings['host']) && !empty($this->settings['protocol']) && !empty($this->settings['token_auth']) && !empty($this->settings['idSite'])) { $contextProperties = $node->getContext()->getProperties(); $contextProperties['workspaceName'] = 'live';