mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
parent
e2ba172a8e
commit
b7f4fa4a29
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user