From 65ee384aea8ba490162c984431a103b84471bcee Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Apr 2011 22:16:15 +0000 Subject: [PATCH] Fix: Update request --- htdocs/commande/class/commande.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index aadfc521ec6..f4ac06719a6 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1460,7 +1460,7 @@ class Commande extends CommonObject */ function nb_expedition() { - $sql = 'SELECT count(*) '; + $sql = 'SELECT count(*)'; $sql.= ' FROM '.MAIN_DB_PREFIX.'expedition as e,'; $sql.= ' '.MAIN_DB_PREFIX."element_element as el ON el.fk_target = e.rowid AND el.targettype = 'shipping'"; $sql.= " WHERE el.fk_source = ".$this->id; @@ -1471,6 +1471,7 @@ class Commande extends CommonObject $row = $this->db->fetch_row($resql); return $row[0]; } + else dol_print_error($this->db); } /**