From 3c2815d2e9774e04f6b48748000b0cdd516890e4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 5 Oct 2022 11:14:37 +0200 Subject: [PATCH] CoreApi: fix version comparison logic fixes #2629 --- library/Director/Core/CoreApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Director/Core/CoreApi.php b/library/Director/Core/CoreApi.php index 6b02a577..ea109163 100644 --- a/library/Director/Core/CoreApi.php +++ b/library/Director/Core/CoreApi.php @@ -47,8 +47,8 @@ class CoreApi implements DeploymentApiInterface { $version = $this->getVersion(); - if ($version === null || (version_compare($version, '2.8.2', '>=') - && version_compare($version, '2.10.2', '<')) + if ($version === null || + ((version_compare($version, '2.8.2', '>=') && version_compare($version, '2.10.2', '<'))) ) { $this->client->disconnect(); $this->client->setKeepAlive(false);