From 2b31b1b57ddcd6e23fd503abeea7bb4a216efd04 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 19 Jan 2006 15:37:14 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/distributeurs/comm/ca.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/telephonie/distributeurs/comm/ca.php b/htdocs/telephonie/distributeurs/comm/ca.php index 703990f65f1..d935383ecf5 100644 --- a/htdocs/telephonie/distributeurs/comm/ca.php +++ b/htdocs/telephonie/distributeurs/comm/ca.php @@ -44,7 +44,16 @@ llxHeader('','Telephonie - Distributeur - Commercial'); * */ $h = 0; + $year = strftime("%Y",time()); +if (strftime("%m",time()) == 1) +{ + $year = $year -1; +} +if ($_GET["year"] > 0) +{ + $year = $_GET["year"]; +} if ($_GET["id"] && $_GET["did"]) {