mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update functions.php
This commit is contained in:
@@ -1702,8 +1702,9 @@ function number_pad($number,$n) {
|
||||
}
|
||||
//add prefix
|
||||
if (strlen($prefix) > 0) {
|
||||
if (strlen($prefix) == 1) {
|
||||
$prefix = $prefix.'?';
|
||||
if (strlen($prefix) > 0 && strlen($prefix) < 4) {
|
||||
$plus = (substr($string, 0, 1) == "+") ? '' : '\+?';
|
||||
$prefix = $plus.$prefix.'?';
|
||||
}
|
||||
else {
|
||||
$prefix = '(?:'.$prefix.')?';
|
||||
|
||||
Reference in New Issue
Block a user