PHP7.0 Compat

This commit is contained in:
Michael RICOIS 2017-01-06 16:19:47 +01:00
parent d83c25b669
commit 6d95964c80

View File

@ -5,7 +5,7 @@ class Metier_Partenaires_MRnvp
public $nomTronque = 0;
protected $tabAdrCQ=array(
protected $tabAdrCQ = array(
10 => 'Adresse correcte',
20 => 'Adresse correcte (Voie non reconue dans un CEDEX ou BP)',
21 => 'Adresse correcte mais numéro de facade hors borne (petite ville)',
@ -43,7 +43,7 @@ class Metier_Partenaires_MRnvp
{
$rep = $this->iDb->select('jo.tabDevises', 'devInpi, devIso', 'devInpi>0', false, MYSQL_ASSOC);
$tabDevises = array();
foreach ($rep as $k=>$dev) {
foreach ($rep as $k => $dev) {
$tabDevises[$dev['devInpi']*1] = $dev['devIso'];
}
@ -469,7 +469,7 @@ class Metier_Partenaires_MRnvp
public function normaliseRS($nomLong, $taille=38, $debug=false)
{
$nomCourt = preg_replace('/[^A-Z0-9%@&\'\(\)\"\-\*\/\s\+]/', '', trim(strtoupper($nomLong)));
$tabMots = split("[^[:alpha:]]+", $nomCourt);
$tabMots = preg_split("[^[:alpha:]]+", $nomCourt);
$passage = 0;
$this->nomTronque = 0;
while (strlen($nomCourt) > $taille) {