Commit 23612e1f authored by Alex Ne's avatar Alex Ne

Деление на ноль...

parent c4504604
...@@ -67,7 +67,7 @@ class X_Graphs_Linear ...@@ -67,7 +67,7 @@ class X_Graphs_Linear
$IDX = 0; $IDX = 0;
foreach ($xLine as $key => $value) foreach ($xLine as $key => $value)
{ {
$X = (( $p_WIDTH * ($IDX) / $x_count ) + $X1); $X = ($x_count>0)?(( $p_WIDTH * ($IDX) / $x_count ) + $X1):0;
$x_data_names[$key] = $X; $x_data_names[$key] = $X;
imagestring ( $this->image, 1, $X, $Y2 + 2, $value, $this->colors[5] ); imagestring ( $this->image, 1, $X, $Y2 + 2, $value, $this->colors[5] );
$IDX++; $IDX++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment