Browse Source

Fix and move the format_phone array

Mark Crane 11 years ago
parent
commit
b84fbcecf4
1 changed files with 1 additions and 0 deletions
  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);