From 618b2647c696b6f9df1945dadf54f5b94eb6a6cd Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 16 Oct 2019 10:30:01 +0200 Subject: [PATCH] DeployFormsBug7530: warn for all 2.11.* versions fixes #1985 --- application/forms/DeployFormsBug7530.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/forms/DeployFormsBug7530.php b/application/forms/DeployFormsBug7530.php index 68498272..17374ffb 100644 --- a/application/forms/DeployFormsBug7530.php +++ b/application/forms/DeployFormsBug7530.php @@ -68,7 +68,9 @@ trait DeployFormsBug7530 $version = $this->api->getVersion(); if ($version === null) { throw new \RuntimeException($this->translate('Unable to detect your Icinga 2 Core version')); - } elseif ($version === '2.11.0') { + } elseif (\version_compare($version, '2.11.0', '>=') + && \version_compare($version, '2.12.0', '<') + ) { return true; } }