From 0acf1a82dbc9bc9c39512e433ccdc8fb403c8d3c Mon Sep 17 00:00:00 2001 From: erics Date: Mon, 6 Oct 2003 19:23:33 +0000 Subject: [PATCH] =?UTF-8?q?si=20on=20a=20une=20soci=E9t=E9=20dont=20le=20n?= =?UTF-8?q?om=20est=20du=20style=20l'fournisseur=20on=20buggue=20sur=20le?= =?UTF-8?q?=20calcul=20du=20pr=E9fix=20qui=20serait=20alors=20l'=20...=20u?= =?UTF-8?q?ne=20petite=20regexp=20perl=20pour=20=E9viter=20ce=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index c356b36917a..3c7d62fedde 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -231,7 +231,7 @@ class Societe { { if ( $this->db->num_rows() ) { - $nom = $this->db->result(0,0); + $nom = preg_replace("/[[:punct:]]/","",$this->db->result(0,0)); $this->db->free(); $prefix = strtoupper(substr($nom, 0, 2));