Module: check_mk
Branch: master
Commit: 107e893699c7d83b1ad94d561ce9a70863b6eba5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=107e893699c7d8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 16 09:18:28 2015 +0100
Made default.php PHP < 5.3 compatible again
---
pnp-templates/default.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pnp-templates/default.php b/pnp-templates/default.php
index fdfb160..6c2eb32 100644
--- a/pnp-templates/default.php
+++ b/pnp-templates/default.php
@@ -43,8 +43,8 @@ sort($perf_vars);
# --password=$USER5$ --mode database-free --name filr --warning 20: --critical 10:
--commit
#
# If no "!" exists then $CHECK_COMMAND = $NAGIOS_CHECK_COMMAND
-$CHECK_COMMAND = explode("!", $NAGIOS_CHECK_COMMAND)[0];
-$id_string = $CHECK_COMMAND . ":" . implode(",", $perf_vars);
+$check_command_parts = explode("!", $NAGIOS_CHECK_COMMAND);
+$id_string = $check_command_parts[0] . ":" . implode(",",
$perf_vars);
# Get current state of previously cached template data for this ID
$template_cache_path = $template_cache_dir . "/" . md5($id_string);