Private GIT

Skip to content
Snippets Groups Projects
Commit 6ea90357 authored by Kevin Duret's avatar Kevin Duret
Browse files

fix legend when metric name contains blank space

parent 23949869
Branches
Tags
No related merge requests found
...@@ -282,7 +282,7 @@ class CentreonGraphService extends CentreonGraph ...@@ -282,7 +282,7 @@ class CentreonGraphService extends CentreonGraph
$retLines = explode("\n", $str); $retLines = explode("\n", $str);
foreach ($retLines as $retLine) { foreach ($retLines as $retLine) {
if (strpos($retLine, '|') !== false) { if (strpos($retLine, '|') !== false) {
$infos = explode('|', preg_replace('/\s+/', '', $retLine)); $infos = explode('|', $retLine);
if (!isset($this->legends[$infos[0]])) { if (!isset($this->legends[$infos[0]])) {
$this->legends[$infos[0]] = array( $this->legends[$infos[0]] = array(
'extras' => array() 'extras' => array()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment