From e929a2d9ae913922005404de764252c71fd84878 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 8 Sep 2003 10:51:59 +0000 Subject: [PATCH] Ajout code de retour --- htdocs/product.class.php3 | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/htdocs/product.class.php3 b/htdocs/product.class.php3 index 2e44256a486..c19a3da017e 100644 --- a/htdocs/product.class.php3 +++ b/htdocs/product.class.php3 @@ -117,29 +117,29 @@ class Product { $result = $this->db->fetch_array(); - $this->id = $result["rowid"]; - $this->ref = $result["ref"]; - $this->label = stripslashes($result["label"]); - $this->description = stripslashes($result["description"]); - $this->price = $result["price"]; - $this->tva_tx = $result["tva_tx"]; - $this->type = $result["fk_product_type"]; - $this->nbvente = $result["nbvente"]; - $this->envente = $result["envente"]; - $this->duration = $result["duration"]; + $this->id = $result["rowid"]; + $this->ref = $result["ref"]; + $this->label = stripslashes($result["label"]); + $this->description = stripslashes($result["description"]); + $this->price = $result["price"]; + $this->tva_tx = $result["tva_tx"]; + $this->type = $result["fk_product_type"]; + $this->nbvente = $result["nbvente"]; + $this->envente = $result["envente"]; + $this->duration = $result["duration"]; $this->duration_value = substr($result["duration"],0,strlen($result["duration"])-1); - $this->duration_unit = substr($result["duration"],-1); + $this->duration_unit = substr($result["duration"],-1); $this->label_url = ''.$this->label.''; $this->db->free(); + return 1; } else { print $this->db->error(); + return -1; } - - return $result; } /* *