浏览代码

Fix and move the format_phone array

Mark Crane 11 年之前
父节点
当前提交
b84fbcecf4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      resources/functions.php

+ 1 - 0
resources/functions.php

@@ -759,6 +759,7 @@ function format_string ($format, $data) {
 		foreach ($_SESSION["format"]["phone"] as &$format) {
 			$format_count = substr_count($format, 'x');
 			$format_count = $format_count + substr_count($format, 'R');
+			$format_count = $format_count + substr_count($format, 'r');
 			if ($format_count == strlen($phone_number)) {
 				//format the number
 				$phone_number = format_string($format, $phone_number);