From 0ec2a7b20ef82ca94311aed2a2e8a30f515cf4d3 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 11 Jan 2020 19:00:52 -0700 Subject: [PATCH] Update functions.php --- resources/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index 2dd01219ed..93b35e82dc 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -720,7 +720,7 @@ function format_string ($format, $data) { //get the format and use it to format the phone number function format_phone($phone_number) { - $phone_number = trim($phone_number, "+"); + $phone_number = trim($phone_number, ' +'); if (is_numeric($phone_number)) { if (isset($_SESSION["format"]["phone"])) foreach ($_SESSION["format"]["phone"] as &$format) { $format_count = substr_count($format, 'x');