diff --git a/library/Icinga/Chart/Donut.php b/library/Icinga/Chart/Donut.php index 1efc9546b..801b78d47 100644 --- a/library/Icinga/Chart/Donut.php +++ b/library/Icinga/Chart/Donut.php @@ -274,6 +274,11 @@ class Donut $offset -= $slice[0]; } + $result = array( + 'tag' => 'div', + 'content' => array($svg) + ); + if ($this->getLabelBig() || $this->getLabelSmall()) { $labels = array( 'tag' => 'div', @@ -307,10 +312,10 @@ class Donut ); } - $svg['content'][] = $labels; + $result['content'][] = $labels; } - return $svg; + return $result; } /**