mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix and move the format_phone array
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user