Update functions.php
This commit is contained in:
parent
deec97d73c
commit
0ec2a7b20e
|
|
@ -720,7 +720,7 @@ function format_string ($format, $data) {
|
||||||
|
|
||||||
//get the format and use it to format the phone number
|
//get the format and use it to format the phone number
|
||||||
function format_phone($phone_number) {
|
function format_phone($phone_number) {
|
||||||
$phone_number = trim($phone_number, "+");
|
$phone_number = trim($phone_number, ' +');
|
||||||
if (is_numeric($phone_number)) {
|
if (is_numeric($phone_number)) {
|
||||||
if (isset($_SESSION["format"]["phone"])) foreach ($_SESSION["format"]["phone"] as &$format) {
|
if (isset($_SESSION["format"]["phone"])) foreach ($_SESSION["format"]["phone"] as &$format) {
|
||||||
$format_count = substr_count($format, 'x');
|
$format_count = substr_count($format, 'x');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue