projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
067b6a2
)
Allows users to add more than one entreprise at the same time (Ooops).
author
Stéphane Jacob
<jacou@melix.net>
Sun, 14 Dec 2008 17:35:42 +0000
(18:35 +0100)
committer
Stéphane Jacob
<jacou@melix.net>
Sun, 14 Dec 2008 17:35:42 +0000
(18:35 +0100)
include/validations/entreprises.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/validations/entreprises.inc.php
b/include/validations/entreprises.inc.php
index
da676a8
..
a329eaa
100644
(file)
--- 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);