From da562324603614796747e9f0bfbb8d1175f8087a Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Fri, 4 Aug 2006 17:49:06 +0000
Subject: [PATCH] Fix: Erreur SQL

---
 htdocs/commande/liste.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php
index c72ed41f578..0740837f783 100644
--- a/htdocs/commande/liste.php
+++ b/htdocs/commande/liste.php
@@ -37,6 +37,8 @@ $langs->load('companies');
 if (!$user->rights->commande->lire)
 	accessforbidden();
 
+$year=isset($_GET["year"])?$_GET["year"]:$_POST["year"];
+$month=isset($_GET["month"])?$_GET["month"]:$_POST["month"];
 $sref=isset($_GET['sref'])?$_GET['sref']:$_POST['sref'];
 $sref_client=isset($_GET['sref_client'])?$_GET['sref_client']:(isset($_POST['sref_client'])?$_POST['sref_client']:'');
 $snom=isset($_GET['snom'])?$_GET['snom']:$_POST['snom'];
-- 
GitLab