summaryrefslogtreecommitdiffstats
path: root/library/Director/Core/CoreApi.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:17:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:17:47 +0000
commit5419d4428c86c488a43124f85e5407d7cbae6541 (patch)
tree772c4221a20fd7d1b3e7e67c6e21755a50e80fd7 /library/Director/Core/CoreApi.php
parentAdding upstream version 1.10.2. (diff)
downloadicingaweb2-module-director-5419d4428c86c488a43124f85e5407d7cbae6541.tar.xz
icingaweb2-module-director-5419d4428c86c488a43124f85e5407d7cbae6541.zip
Adding upstream version 1.11.1.upstream/1.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--library/Director/Core/CoreApi.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/Director/Core/CoreApi.php b/library/Director/Core/CoreApi.php
index ea10916..73588c2 100644
--- a/library/Director/Core/CoreApi.php
+++ b/library/Director/Core/CoreApi.php
@@ -569,7 +569,7 @@ constants
'icon_image_alt' => 'icon_image_alt',
];
- if (version_compare($this->getVersion(), '2.8.0', '>=')) {
+ if (version_compare($this->getVersion() ?? '', '2.8.0', '>=')) {
$params['flapping_threshold_high'] = 'flapping_threshold_high';
$params['flapping_threshold_low'] = 'flapping_threshold_low';
}
@@ -622,7 +622,7 @@ constants
{
IcingaCommand::setPluginDir($this->getConstant('PluginDir'));
- $objects = $this->getDirectorObjects('Command', "${type}Commands", [
+ $objects = $this->getDirectorObjects('Command', "{$type}Commands", [
'arguments' => 'arguments',
// 'env' => 'env',
'timeout' => 'timeout',