From bae6e7f4f53dbcd6f2519c8999307e939382652e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 6 Dec 2005 10:41:40 +0000 Subject: [PATCH] =?UTF-8?q?Gestion=20du=20param=E8tre=20year?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/factures/marge.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/htdocs/telephonie/stats/factures/marge.php b/htdocs/telephonie/stats/factures/marge.php index 7811791df49..0b271c4d1a0 100644 --- a/htdocs/telephonie/stats/factures/marge.php +++ b/htdocs/telephonie/stats/factures/marge.php @@ -38,12 +38,9 @@ if ($user->societe_id > 0) $socidp = $user->societe_id; } -$year = strftime("%Y", time()); -$year = $_GET["year"]; - +$year = defined($_GET["year"])?$_GET["year"]:strftime("%Y", time()); $h = 0; - $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/factures/index.php'; $head[$h][1] = "Global"; $h++;