From c8f324f626599879b38a636338f8ea5f0fdb0390 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 15 Nov 2019 11:55:41 -0700 Subject: [PATCH] Update functions.php --- resources/functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 70d8a10dc1..145ead7512 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -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); }