Skip to content

Commit 9224db0

Browse files
committed
using str_getcsv without parameters will be deprecated with php 9.0
1 parent e5fa998 commit 9224db0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

histou/template/parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function parseSimpleTemplate($file)
4444
foreach (array('host', 'service', 'command', 'perfLabel') as $type) {
4545
if (preg_match(";^\s*$type\s*=\s*(.*?)$;", $line, $hit)) {
4646
if ($type == 'perfLabel') {
47-
$ruleHits[$type] = str_getcsv($hit[1]);
47+
$ruleHits[$type] = str_getcsv($hit[1],",", '"', '');
4848
foreach ($ruleHits[$type] as &$label) {
4949
$label = trim($label);
5050
}

0 commit comments

Comments
 (0)