From 7acecadc797e5c22caccb263da384afa1fd9ad82 Mon Sep 17 00:00:00 2001
From: Philippe Grand <contact@atoo-net.com>
Date: Fri, 23 May 2014 11:37:57 +0200
Subject: [PATCH] avoid warning in commande.class.php if extrafields is used

avoid warning in commande.class.php if extrafields is used
---
 htdocs/commande/class/commande.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index 146d9e777c2..b96ea931f21 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -1362,7 +1362,7 @@ class Commande extends CommonOrder
                 $extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
                	$this->fetch_optionals($this->id,$extralabels);
 
-                $this->db->free();
+                $this->db->free($result);
 
                 /*
                  * Lines
-- 
GitLab