Update functions.php

This commit is contained in:
FusionPBX 2019-11-15 11:55:41 -07:00 committed by GitHub
parent 29c80cb417
commit 21a8b09496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1675,7 +1675,7 @@ function number_pad($number,$n) {
if (substr($string, -1) != "$") {
$string = $string."$";
}
//add the round brackets ( and )
//add the round brackets
if (!strstr($string, '(')) {
if (strstr($string, '^')) {
$string = str_replace("^", "^".$prefix."(", $string);
@ -1683,8 +1683,6 @@ function number_pad($number,$n) {
else {
$string = '^('.$string;
}
}
if (!strstr($string, ')')) {
if (strstr($string, '$')) {
$string = str_replace("$", ")$", $string);
}