Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes/graphdraw/CGraphDraw.php')
-rw-r--r--frontends/php/include/classes/graphdraw/CGraphDraw.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/include/classes/graphdraw/CGraphDraw.php b/frontends/php/include/classes/graphdraw/CGraphDraw.php
index e262335ea83..84a4316219f 100644
--- a/frontends/php/include/classes/graphdraw/CGraphDraw.php
+++ b/frontends/php/include/classes/graphdraw/CGraphDraw.php
@@ -231,10 +231,13 @@ abstract class CGraphDraw {
$str = $this->items[0]['hostname'].NAME_DELIMITER.$this->items[0]['name'];
}
else {
+ // TODO: graphs shouldn't resolve names themselves
$str = CMacrosResolverHelper::resolveGraphName($this->header, $this->items);
}
- $str .= $this->period2str($this->period);
+ if ($this->period) {
+ $str .= $this->period2str($this->period);
+ }
// calculate largest font size that can fit graph header
// TODO: font size must be dynamic in other parts of the graph as well, like legend, timeline, etc