summaryrefslogtreecommitdiffstats
path: root/application/controllers/GraphController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/GraphController.php')
-rw-r--r--application/controllers/GraphController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/GraphController.php b/application/controllers/GraphController.php
index c8dc7db..2c59171 100644
--- a/application/controllers/GraphController.php
+++ b/application/controllers/GraphController.php
@@ -152,8 +152,8 @@ class GraphController extends Controller
$charts[0]
->setFrom($this->graphParams['start'])
->setUntil($this->graphParams['end'])
- ->setWidth($this->graphParams['width'])
- ->setHeight($this->graphParams['height'])
+ ->setWidth((int) $this->graphParams['width'])
+ ->setHeight((int) $this->graphParams['height'])
->setBackgroundColor($this->graphParams['bgcolor'])
->setForegroundColor($this->graphParams['fgcolor'])
->setMajorGridLineColor($this->graphParams['majorGridLineColor'])