diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-11-30 09:29:35 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-11-30 09:29:35 +0000 |
commit | 5ced6d5c25202717ef3ec1a811cffba6b44bcb79 (patch) | |
tree | 9e809048dd794a6d7d95497fe60f11bbcd77cc88 /src/charts/line.php | |
parent | a624a3e637586a8efc327cd5e8e6021bf3546c00 (diff) | |
download | zetacomponents-graph-5ced6d5c25202717ef3ec1a811cffba6b44bcb79.zip zetacomponents-graph-5ced6d5c25202717ef3ec1a811cffba6b44bcb79.tar.gz |
- Fixed bug #9568: (Devision by zero warning)
Diffstat (limited to 'src/charts/line.php')
-rw-r--r-- | src/charts/line.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/charts/line.php b/src/charts/line.php index 2024ef0..3cdd444 100644 --- a/src/charts/line.php +++ b/src/charts/line.php @@ -290,6 +290,11 @@ class ezcGraphLineChart extends ezcGraphChart */ public function render( $width, $height, $file = null ) { + if ( !count( $this->data ) ) + { + throw new ezcGraphNoDataException(); + } + // Set image properties in driver $this->driver->options->width = $width; $this->driver->options->height = $height; |