updated rrdtool ver check to wrap quotes around (#6393)

This commit is contained in:
Neil Lathwood 2017-04-11 07:04:25 +01:00 committed by GitHub
parent 5ce9b6b2e8
commit 069020cb80

View File

@ -335,7 +335,7 @@ foreach ($bins as $bin) {
// Check that rrdtool config version is what we see // Check that rrdtool config version is what we see
if (isset($config['rrdtool_version']) && (version_compare($config['rrdtool_version'], $versions['rrdtool_ver'], '>'))) { if (isset($config['rrdtool_version']) && (version_compare($config['rrdtool_version'], $versions['rrdtool_ver'], '>'))) {
print_fail('The rrdtool version you have specified is newer than what is installed.', "Either comment out \$config['rrdtool_version'] = {$config['rrdtool_version']}; or set \$config['rrdtool_version'] = {$versions['rrdtool_ver']};"); print_fail('The rrdtool version you have specified is newer than what is installed.', "Either comment out \$config['rrdtool_version'] = '{$config['rrdtool_version']}'; or set \$config['rrdtool_version'] = '{$versions['rrdtool_ver']}';");
} }
$disabled_functions = explode(',', ini_get('disable_functions')); $disabled_functions = explode(',', ini_get('disable_functions'));