Nate 5 лет назад
Родитель
Сommit
594091e7d3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      resources/functions.php

+ 1 - 1
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');