From 2707dcd283d6906c86309a299ddafcf609d903bc Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Wed, 6 May 2015 23:44:53 +0200 Subject: [PATCH] Code fixes --- .../comm/askpricesupplier/class/askpricesupplier.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php b/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php index 844e851a20c..2e39d8592cf 100644 --- a/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php +++ b/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php @@ -6,7 +6,7 @@ * Copyright (C) 2005-2013 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2008 Raphael Bertrand - * Copyright (C) 2010-2014 Juanjo Menent + * Copyright (C) 2010-2015 Juanjo Menent * Copyright (C) 2010-2011 Philippe Grand * Copyright (C) 2012-2014 Christophe Battarel * Copyright (C) 2013 Florian Henry @@ -1622,7 +1622,7 @@ class AskPriceSupplier extends CommonObject $sql = 'UPDATE '.MAIN_DB_PREFIX.'product_fournisseur_price SET '.(!empty($product->ref_fourn) ? 'ref_fourn = "'.$product->ref_fourn.'", ' : '').' price ='.$price.', unitprice ='.$unitPrice.' WHERE rowid = '.$idProductFournPrice; $resql = $this->db->query($sql); - if (!resql) { + if (!$resql) { $this->error=$this->db->error(); $this->db->rollback(); return -1; @@ -1658,7 +1658,7 @@ class AskPriceSupplier extends CommonObject $sql .= '(datec, fk_product, fk_soc, ref_fourn, price, quantity, unitprice, tva_tx, fk_user) VALUES ('.implode(',', $values).')'; $resql = $this->db->query($sql); - if (!resql) { + if (!$resql) { $this->error=$this->db->error(); $this->db->rollback(); return -1;