From 8b78788eec8be8e58a564c679a1c16f5639e9122 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 11 Jan 2006 10:51:29 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/stats/tools.lib.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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++;