Fix deprecation warning in Perfdata.php

fixes #6076
This commit is contained in:
Gunnar Beutner 2014-04-29 12:00:05 +02:00
parent e2ba172a8e
commit b7f4fa4a29
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
$pset = PerfdataSet::fromString($perfdata);
$ps = $pset->getAll();
$perfdata = preg_replace('~\'([^\']+)\'~e', "str_replace(' ', '\'', '$1')", $perfdata);
$perfdata = preg_replace_callback('~\'([^\']+)\'~', function($match) { return str_replace(' ', '\'', $match[1]); }, $perfdata);
$parts = preg_split('~\s+~', $perfdata, -1, PREG_SPLIT_NO_EMPTY);
$table = array();