Fix: Corrections de caractères anormaux dans le fichier provoquant erreur PHP
This commit is contained in:
parent
66daba1151
commit
f8acd00b2d
@ -266,35 +266,30 @@ function dolibarr_print_object_info($object)
|
|||||||
|
|
||||||
function dolibarr_print_phone($phone)
|
function dolibarr_print_phone($phone)
|
||||||
{
|
{
|
||||||
if (strstr($phone, ' ')) return $phone;
|
if (strstr($phone, ' ')) { return $phone; }
|
||||||
if (strlen(trim($phone)) == 10)
|
if (strlen(trim($phone)) == 10) {
|
||||||
{
|
return substr($phone,0,2)." ".substr($phone,2,2)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2);
|
||||||
return substr($phone,0,2)." ".substr($phone,2,2)."
|
}
|
||||||
".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2);
|
elseif (strlen(trim($phone)) == 7)
|
||||||
}
|
{
|
||||||
elseif (strlen(trim($phone)) == 7)
|
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2);
|
||||||
{
|
}
|
||||||
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2);
|
elseif (strlen(trim($phone)) == 9)
|
||||||
}
|
{
|
||||||
elseif (strlen(trim($phone)) == 9)
|
return substr($phone,0,2)." ".substr($phone,2,3)." ".substr($phone,5,2)." ".substr($phone,7,2);
|
||||||
{
|
}
|
||||||
return substr($phone,0,2)." ".substr($phone,2,3)."
|
elseif (strlen(trim($phone)) == 11)
|
||||||
".substr($phone,5,2)." ".substr($phone,7,2);
|
{
|
||||||
}
|
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2)." ".substr($phone,7,2)." ".substr($phone,9,2);
|
||||||
elseif (strlen(trim($phone)) == 11)
|
}
|
||||||
{
|
elseif (strlen(trim($phone)) == 12)
|
||||||
return substr($phone,0,3)." ".substr($phone,3,2)."
|
{
|
||||||
".substr($phone,5,2)." ".substr($phone,7,2)." ".substr($phone,9,2);
|
return substr($phone,0,4)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2)." ".substr($phone,10,2);
|
||||||
}
|
}
|
||||||
elseif (strlen(trim($phone)) == 12)
|
else
|
||||||
{
|
{
|
||||||
return substr($phone,0,4)." ".substr($phone,4,2)."
|
return $phone;
|
||||||
".substr($phone,6,2)." ".substr($phone,8,2)." ".substr($phone,10,2);
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return $phone;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user