From: Stéphane Jacob Date: Sun, 14 Dec 2008 17:35:42 +0000 (+0100) Subject: Allows users to add more than one entreprise at the same time (Ooops). X-Git-Tag: xorg/1.0.0~332^2~344^2~70 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8ce56ecc28571b37b0d02c23db78e754bd210798;p=platal.git Allows users to add more than one entreprise at the same time (Ooops). --- diff --git a/include/validations/entreprises.inc.php b/include/validations/entreprises.inc.php index da676a8..a329eaa 100644 --- a/include/validations/entreprises.inc.php +++ b/include/validations/entreprises.inc.php @@ -54,8 +54,7 @@ class EntrReq extends Validate $this->tel = $_tel; $this->fax = $_fax; - $separators = array("&", "(", ")", "-", "_", ",", ";", ".", ":", "/", "\\", "\'", "\""); - $replacement = array(" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "); + $_name = str_replace(array("&", "(", ")", "-", "_", ",", ";", ".", ":", "/", "\\", "\'", "\""), " ", $_name); $name = explode(" ", $_name); $name_array = array_map("trim", $name); $length = count($name_array);