Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin
2009-10-24 06:10:00 +00:00
parent cb380db18d
commit 960afb50ed
14 changed files with 101 additions and 101 deletions

View File

@@ -240,7 +240,7 @@ class Commande extends CommonObject
$result=$soc->set_as_client();
// Define new ref
if (! $error && (preg_match('/^\(PROV/i', $this->ref) || preg_match('/^PROV/i', $this->ref)))
if (! $error && (preg_match('/^[\(]?PROV/i', $this->ref)))
{
$num = $this->getNextNumRef($soc);
}
@@ -291,7 +291,7 @@ class Commande extends CommonObject
if (! $error)
{
// Rename directory if dir was a temporary ref
if (preg_match('/^\(PROV/i', $this->ref) || preg_match('/^PROV/i', $this->ref))
if (preg_match('/^[\(]?PROV/i', $this->ref))
{
// On renomme repertoire ($this->ref = ancienne ref, $numfa = nouvelle ref)
// afin de ne pas perdre les fichiers attaches