Fix and move the format_phone array

This commit is contained in:
Mark Crane
2014-08-31 00:57:58 +00:00
parent 4a171cc806
commit d742f190f1
2 changed files with 1 additions and 2 deletions

View File

@@ -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);