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++;