Browse Source

Update functions.php

FusionPBX 5 years ago
parent
commit
1b22a62a81
1 changed files with 1 additions and 3 deletions
  1. 1 3
      resources/functions.php

+ 1 - 3
resources/functions.php

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