diff --git a/htdocs/telephonie/stats/tools.lib.php b/htdocs/telephonie/stats/tools.lib.php index 623e18aaa61..81b2e9a4f3c 100644 --- a/htdocs/telephonie/stats/tools.lib.php +++ b/htdocs/telephonie/stats/tools.lib.php @@ -24,6 +24,19 @@ function stat_year_bar($year) $cyear = strftime("%Y",time()); $x = 2005; $string = ''; + + $query = array(); + $query = explode("&",$_SERVER["QUERY_STRING"]); + + $qs = ''; + foreach($query as $q) + { + if (substr($q,0,4) <> 'year') + { + $qs .= '&'.$q; + } + } + while ($x <= $cyear) { if ($x == $year) @@ -32,7 +45,11 @@ function stat_year_bar($year) } else { - $string .= ''.$x.' | '; } $x++;