projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Division by zero error in graphics (Joe Hunt)
[fa-stable.git]
/
reporting
/
includes
/
class.graphic.inc
diff --git
a/reporting/includes/class.graphic.inc
b/reporting/includes/class.graphic.inc
index c1133648eddd578edba73171f450009c6c341760..02af5f2ad97cb4287a4385a07ee0f1554ccb345a 100644
(file)
--- a/
reporting/includes/class.graphic.inc
+++ b/
reporting/includes/class.graphic.inc
@@
-203,6
+203,8
@@
class graph
}
$this->sum_total = array_sum($this->y);
+ if ($this->sum_total == 0)
+ $this->sum_total = 1;
$this->space_between_bars += ($this->graphic_2_exists == true) ? 10 : 0;
$this->calculate_higher_value();