diff --git a/htdocs/telephonie/ligne/conso.php b/htdocs/telephonie/ligne/conso.php index 5eb6393d356..b2f56b55133 100644 --- a/htdocs/telephonie/ligne/conso.php +++ b/htdocs/telephonie/ligne/conso.php @@ -149,6 +149,22 @@ if ($_GET["id"] or $_GET["numero"]) print ""; + + $img_root = DOL_DATA_ROOT."/graph/".substr($ligne->id,-1)."/telephonie/ligne/"; + + $file = $img_root.$ligne->id."/conso.png"; + + if (file_exists($file)) + { + print '
Conso'; + } + else + { + print $mesg_no_graph; + } + + + } } }