From b36c863bcbcfe8a014e34d32fcbd4388e3f47327 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 22 Feb 2005 08:27:01 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20test=20taille=20des=20donn=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/graph/line.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/graph/line.class.php b/htdocs/telephonie/stats/graph/line.class.php index b174162182a..1acb18b494e 100644 --- a/htdocs/telephonie/stats/graph/line.class.php +++ b/htdocs/telephonie/stats/graph/line.class.php @@ -89,7 +89,11 @@ class GraphLine extends DolibarrGraph { // Display the graph $graph->img->SetImgFormat("png"); - $graph->Stroke($file); + + if (sizeof($datas) > 0) + { + $graph->Stroke($file); + } } } ?>